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
Juan T. Llibre - 18 May 2008 20:26 GMT
Try :
string[] roles = CustomPrincipal.Roles;
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
> Hi
>
[quoted text clipped - 13 lines]
>
> Regards