Click here to Skip to main content
15,916,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir,


how to set default url in webconfiq.


when i log in one login page. after that i copied the url and paste to another browser.here i want set default a page. for example here i want set home page is a default page.


how to set?

XML
<authentication mode="Forms">
      <forms loginUrl="~/Admin/Login.aspx" defaultUrl="Home.aspx" cookieless="UseCookies" />
    </authentication>
Posted

1 solution

Use this for IIS 7

HTML
<system.webserver>
  <defaultdocument>
    <files>
      <clear />
      <add value="MyLoginPage.aspx" />
    </files>
  </defaultdocument>
</system.webserver>


In IIS 6 , you can do it using a small hack

HTML
<system.web>
  <urlMappings>
    <add url="~/Default.aspx" mappedUrl="~/YourPage.aspx"/>
  </urlMappings>
</system.web>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900