Home > DeveloperSection > Forums > How to set startup page for a specific folder in Asp.Net?
Ashish Pandey

Total Post:128

Points:898
Posted on    August-21-2014 12:41 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 652  View(s)
Rate this:
How to set startup page for a specific folder in Asp.Net?


Sumit Kesarwani

Total Post:378

Points:2694
Posted on    August-21-2014 1:12 AM

Hi Ashish, 

Firstyou have to add web.config file in folder and in your web.config add this rule

<defaultDocument enabled="true">

   <files>     

       <clear/>

       <add value="index.aspx"/>    

   </files>

</defaultDocument>

  <modules runAllManagedModulesForAllRequests="true"/>


Don't want to miss updates? Please click the below button!

Follow MindStick