Tag Archives: default page

Setting your default page in ASP NET

Let’s say you host your site in www.godaddy.com or Mosso or someplace else. You don’t have access to IIS and you need to set the default start page in your ASP NET application.

If you are working with ASP.NET just do it by setting it in the web.config:

<configuration>
    <system.webServer>
        <defaultDocument>
            <files>
                <clear />
                    <add value=”yourstartpage.aspx” />
            </files>
        </defaultDocument>
    </system.webServer>
</configuration>

If you are using FormsAuthentication do the following to set the default page
<authentication mode=”Forms”>
<forms name=”.COOKIENAME”
loginUrl=”YourLoginPage.aspx”
defaultUrl=”YourDefaultPage.aspx”
protection=”All”
timeout=”30″
path=”/”> 
</forms>
</authentication>