HOW TO SET STARTUP PAGE FOR A SPECIFIC FOLDER IN ASP.NET?

Ashish Pandey

Total Post:128

Points:898
Posted by  Ashish Pandey
 900  View(s)
Ratings:
Rate this:
How to set startup page for a specific folder in Asp.Net?
  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: How to set startup page for a specific folder in Asp.Net?

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!