Click here to Skip to main content
15,921,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please help me to find how could i prevent the navigation on my ASP pages unless logged into the website
Thank You,
Shadi,
Best Regards.
Posted
Comments
thatraja 23-Dec-10 6:43am    
Hi, Always mention things clearly in the question. Actually you have mentioned ASP.NET in Tag & ASP in question. I'm sure both are ASP.NET but some people may confuse. cheers.

Are you talking about Asp.net pages? (You put Asp.net tag for the question).

If that is so, then, the Forms Authentication lets you implement this very easily. Please skip this answer if you are really talking about ASP pages (Not Asp.net pages)

If you use Form Authentication for Authentication, you just need to implement Authorization in your Asp.net application to implement this.

Forms Authorization lets you configure the page access to authenticated users very easily, in the web.config file.

See http://msdn.microsoft.com/en-us/library/ff647070.aspx[^] to learn more about this.
 
Share this answer
 
Inser Directory structure for authentication avoid the unauthenticated user in sub directory use forms authentication is the best way to do this
 
Share this answer
 
you can also use folder authentication in this case.
 
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