Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am using Membershiop and roles in my application. I do not want to show all the control to the users, only authenticated users can see these control.

Can i do it using roles and membership?

Thanks & regards,

Puneet Sharma
Posted

1 solution

Once ASp.NET 2.0 roles and membership is in place, you always have an access to type of role/membership of the logged in user (in all the pages)

Based on the roles, you can play with the visibility of the controls at runtime. Thus, show the ones specific to a role.
(Pages can be handled in the Web.Config itself.)
 
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