Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

How do you determine, what is the role of the current user? 
The User object provides an IsInRole method to determine the role of the current user, as shown in the following example:
if(User.IsInRole("Administrators"))
{
///////
}