Unable to get list of roles

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

When I try to get a list of roles using

RolesArray = Roles.GetAllRoles()

the array returned is Nothing. However if I assign a user to a role as below

Roles.AddUserToRole(User.UserName, "Feedback")

it works OK.

How can I get the list of roles already in the membership system?

Thanks

Regards
 
Back
Top