Membership Roles.GetUsersInRole not working for me
Posted
by Nickson
on Stack Overflow
See other posts from Stack Overflow
or by Nickson
Published on 2010-05-13T07:54:45Z
Indexed on
2010/05/13
8:14 UTC
Read the original article
Hit count: 652
Dim usersInRole As String() = Roles.GetUsersInRole("HR_Base_Role")
Dim Myusers As New MembershipUserCollection
For Each UserName As String In usersInRole
Myusers.Add(Membership.GetUser(UserName))
Next
ComboBox2.DataSource = Myusers
The code above throws a "Specified method is not supported." exception on the first line. Any one knows what am doing wrong here?
© Stack Overflow or respective owner