Had some problem to set a good title for the problem I have.
I'm not very good at working with membership users but I would like to have the ability to block a user from my page.
This was not the issue but when I try to list users that are blocked or not blocked i end up with a small problem. I cannot block users that have a swedish char in the username.
If I use:
this.ddlUsers.DataSource = Membership.GetAllUsers();
this.ddlUsers.DataBind();
all is good, I can see all users, but if I use:
private void getUsersToBlock()
{
this.ddlBlockUser.Items.Clear();
MembershipUserCollection muc = Membership.GetAllUsers();
List<string> AllUsersCollection_ = new List<string>();
foreach (MembershipUser ee in muc)
{
AllUsersCollection_.Add(ee.UserName.ToString());
}
...
Go to the complete details ...