How to get ASP.NET MemberhipUser by email

How can I get an ASP.NET MemberhipUser by specifying an email address, none of the overloads Membership.GetUser()will get an email address.

+5
source share
3 answers
string thisUser= Membership.GetUserNameByEmail("email") 

gotta do the trick. Then you can use

 MembershipUser mu = Membership.GetUser(thisUser);
+14
source

There is a Memberhip.GetUserNameByEmail method . Hope this is what you are looking for.

0
source

Use the GetUserNameByEmail method. Here is an example: MSDN Help

0
source

All Articles