View Single Post
  #14 (permalink)  
Old 04-02-2008, 04:53 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
S.Vinothkumar is on a distinguished road
Smile Re: How to Implementing Role Based Security in ASP.NET

Authorizing the user

Once you have done this, authorizing a user is same as in Windows authentication.

Code:
if(User.IsInRole("manager")
{
   //display all options
}
else
{
   //display limited options
}
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Reply With Quote