Reading A User's Profile
Posted
by Ricardo Peres
on ASP.net Weblogs
See other posts from ASP.net Weblogs
or by Ricardo Peres
Published on Tue, 18 May 2010 13:18:00 GMT
Indexed on
2010/05/18
13:21 UTC
Read the original article
Hit count: 345
One frequent question is: how can we read a user's profile properties? The answer is simple, we use class ProfileBase:
//a specific user ProfileBase profile = ProfileBase.Create("username", true); //all users BaseProfile [] profiles = Membership.GetAllUsers().Cast().Select(u => ProfileBase.Create(u.UserName, true)).ToArray();
© ASP.net Weblogs or respective owner