Click here to Skip to main content
15,919,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir,
how to set default url in web confiq. if i copy the urllink one browser to another browser.

My coding ...
HTML
<authentication mode="Forms">
 <forms loginUrl="~/Admin/Login.aspx" defaultUrl="Index.aspx" cookieless="UseCookies"/>
   </authentication>

but it is not working.
Posted
Updated 13-Jan-12 0:07am
v2

1 solution

in web.config,

XML
<system.webServer>
        <defaultDocument>
            <files>
                <remove value="default.aspx"/>
                <remove value="Default.htm"/>
                <add value="Index.aspx"/>
            </files>
        </defaultDocument>
    </system.webServer>
 
Share this answer
 

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