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.

  

 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/defaultdocument

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

 

Lionden 2014年5月14日

E-mail:hsdlionden@hotmail.com

转载请注明原文地址和博客园Liondenhttp://www.cnblogs.com/lionden/


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM