Click here to Skip to main content
15,922,007 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi All,

in mvc default template have login and register page when i register new user all the users details store into AspNetUsers table i want to retrieve all the register user how can i do it?

1 solution

Here is code that retrieve all register users:
var context = new IdentityDbContext();
var users = context.Users.ToList();
Share this answer
Member 10419297 21-Dec-15 2:40am    
how to update register user password and UserName ?
Saad Saadi 28-Dec-15 1:26am    
UserManager<identityuser> userManager =
new UserManager<identityuser>(new UserStore<identityuser>());

userManager.AddPassword(userId, newPassword);

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900