0

Possible Duplicate:
Set Default Page in Asp.net
ASP.NET Default Document

I have removed the default.aspx from my web application. Now when I run the application it only displays the contents of the directory in the browser. May I ask where the line of code/setting is to change the entry point to the site, for example the first page served is forum.aspx and not default.aspx

Regards

E

Community
  • 1
  • 1
user1392324
  • 39
  • 1
  • 4

1 Answers1

5

The default document, is an IIS setting. You can change it also from web.config using this as sample:

<configuration>
   <system.webServer>
      <defaultDocument enabled="true">
         <files>
            <add value="home.html" />
         </files>
      </defaultDocument>
   </system.webServer>
</configuration>

Find all details at : http://www.iis.net/ConfigReference/system.webServer/defaultDocument

Aristos
  • 66,005
  • 16
  • 114
  • 150