Is there any way to get the explicit role that a user belongs to in my controller? This assumes using ASP.NET Membership and Role Providers. \"IsInRole\" doesn\'t work - I n
You can get a list of Roles from the GetRoles method. (From the link)
string[] rolesArray; public void Page_Load() { RolePrincipal r = (RolePrincipal)User; rolesArray = r.GetRoles(); ...//extra code }