Menu ▼



Posted By :
avatarmrkraju
Total Views : 520

Set default document in asp.net web.config file

When we open a website a default page will be opened. You can set which page should be opened or which is the default page in the website in web.config file. You can set the default document in defaultDocument section under system.webServer section in web.config file. Below example will let you know how to set the default document in asp.net web.config file.

Example

<system.webServer>
<defaultDocument>
  <files>
    <add value="Home.aspx"/>
  </files>
</defaultDocument>
</system.webServer>






comments powered by Disqus


Search dotnetlearners.com