views:

307

answers:

1

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
what about when the Role Manager feature has not been enabled?
NTulip