Snippet. ASP.NET. How to Find User By Email Using the Membership APIThe Membership API is great for working with users. However, when you try to find a user by email it does not come with a straightforward solution. This snippet will find a single user by email. Method FindUserByEmail
ExampleMembershipUser user = FindUserByEmail("someemail@website.org") if(user==null) { // User with this email does not exist } else { // User with the specified email found. } Updated on: 08 Jun 2020 |
|