Reading A User's Profile
- by Ricardo Peres
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();
SyntaxHighlighter.config.clipboardSwf = 'http://alexgorbatchev.com/pub/sh/2.0.320/scripts/clipboard.swf';
SyntaxHighlighter.brushes.CSharp.aliases = ['c#', 'c-sharp', 'csharp'];
SyntaxHighlighter.all();