Could somone tell me why this statement return nothing and how to correct it. What im trying todo is select User where username starts with the letter from the alphabet
alpha = "A" "B" "C" "D" etc. both don't work
IList<MembershipUser> users = Membership.GetAllUsers().Cast<MembershipUser>()
.Where(x => x.UserName.StartsWith(alpha) == true).ToList();
IList<MembershipUser> users = Membership.GetAllUsers().Cast<MembershipUser>()
.Where(x => x.UserName.StartsWith(alpha)).ToList();