View Single Post
Old 05-26-2013, 01:24 PM
Qua's Avatar
Qua Qua is offline
Impetuous & volatile

* Expert *
Join Date: Apr 2005
Posts: 2,177

If you integrate with the RoleProvider api native to ASP.NET, then you can ask if the currently logged in user has a specific role.

On your page you could query whether the user had the specific role, and if he does then you go ahead and show the "admin" buttons. If he does not then you leave them out. Remember to check this server side as well to prevent any security issues.
Reading is the foundation for all knowledge - Unknown.
Reply With Quote