asp.net - Login.aspx always wants to be my home page! -


just starting out in asp.net. have created login.aspx page in site , stuck on asp login control - that's did. welcome.aspx page won't show start page of site when debug - though set this. plus have edited web.config - (see below) - , still same thing. how make work have welcome.aspx page start default?

<authentication mode="forms">       <forms defaulturl="~/welcome.aspx" loginurl="~/login.aspx" timeout="1440" ></forms> </authentication> 

if want users access welcome.aspx without being authenticated, put welcome.aspx in separate folder, , set new web.config in sub folder. fill out authorization section in web.config files in folder , subfolders accessible anonymous users, this:

<authorization><allow users="?" /></authorization> 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -