asp.net設置默認打開頁面,Web.config,defaultDocument

  The web.config file can be used to set a default document, or list of default documents for your website. Web.config can be used to change the default document (page) for an entire site, or on a directory by directory basis. The default page may be a .php, .asp, .htm, .aspx, .cfm, or any other file type handled by the web server.php

  

 1 <configuration>
 2 
 3   <system.webServer>
 4 
 5     <defaultDocument>
 6       <files>
 7         <clear />
 8         <add value="index.asp" />
 9       </files>
10     </defaultDocument>
11 
12   </system.webServer>
13 
14 </configuration>

 

微軟IIS知識連接:http://www.iis.net/configreference/system.webserver/defaultdocumentweb

CSDN博文:http://blog.csdn.net/happymagic/article/details/8824609app

 

Lionden 2014年5月14日spa

E-mail:hsdlionden@hotmail.com.net

轉載請註明原文地址和博客園Liondenhttp://www.cnblogs.com/lionden/code

相關文章
相關標籤/搜索