开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜