Development With A Dot

Blog on development in general, and specifically on .NET

Sponsors

News

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: ,

Comments

Twitter Trackbacks for Reading A User's Profile - Development With A Dot [asp.net] on Topsy.com said:

Pingback from  Twitter Trackbacks for                 Reading A User's Profile - Development With A Dot         [asp.net]        on Topsy.com

# May 18, 2010 4:42 PM