Development With A Dot

Blog on development in general, and specifically on .NET



My Friends

My Links

Permanent Posts

Portuguese Communities

Reading A User's Profile

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();

Bookmark and Share
Posted: May 18 2010, 02:18 PM by Ricardo Peres | with 1 comment(s)
Filed under: ,


No Comments