Managing User Profiles in asp.net MVC2
I'm trying to add user management to a web app using .net MVC2, similarly to ProfileProvider: retrieve list of all profiles.
I'd like to display profile information (first name, last name) on the "list all users" page, but I can't figure out how to get all profiles. ProfileManager.GetAllProfiles() returns a collection of ProfileInfo objects rather than actual Profile objects.
While the ProfileInfo class does give me access to some useful info, I can't actually get any properties o开发者_Python百科f that particular profile.
Is there a way to get all Profiles in the system so that I can list them on an admin page?
You could try using the MembershipProvider.GetAllUsers to get more extensive information about each user. This will give you a collection of MembershipUser.
精彩评论