Hi everyone. I want to bind all the users to list but not the users in the admistrators role.
This is the code Im using to bind all the users
private void BindUsersToUserList()
{
// Get all of the user accounts
MembershipUserCollection users = Membership.GetAllUsers();
userNameDropDownList.DataSource = users;
userNameDropDownList.DataBind();
}
and
<asp:DropDownList ID="userNameDropDownList" runat="server" DataTextField="UserName"
DataValueField="UserName" AppendDataBoundItems="True" >
Is there a simple way to eliminate the users in the administors role from the list.
Cheers
...
Go to the complete details ...