I want to know what roles a logged in user belongs to without having to check the user against all possible roles (i.e. using Page.User.IsInRole())
+3
A:
(System.Web.Security)
Roles.GetRolesForUser()
Or
Roles.GetRolesForUser(String) if not targeting the currently logged in user.
lithelike
2009-04-07 04:00:38
what about when the Role Manager feature has not been enabled?
NTulip
2010-01-26 18:49:35