Click here to Skip to main content
15,918,243 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to development ASP.NET application where users with different access - levels will signup to the website. Based upon their access - level I would like to SHOW/HIDE certain pages from them.

Could someone tell me how could I achieve this using ASP.NET Framework. Is there a STANDARD WAY in ASP.NET to achieve this. I have heard something like setting user roles from web.config file but never used it. Could some elaborate a std way.

Thanks in advance
Posted

The thing you are trying to implement is called roles and membership in ASP.NET. Refer to below links and go through each article. I strongly suggest you to learn each and every topic there because these concpets will be requiered in almost all the apps/websites where User Account comes into picture.

ASP.NET Login Controls Overview[^]

How to: Implement Simple Forms Authentication[^]

Walkthrough: Managing Web Site Users with Roles[^]

Regards.. :laugh:
 
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