Mega Code Archive

 
Categories / ASP.Net Tutorial / Authentication Authorization
 

Checking whether the user is part of a specific role

If (User.IsInRole("ReutersServer\Subscribers")) Then    ' Private information for subscribers Else    ' Public information End If