Extend the User Profile With Custom Properties
Hi,
I'd like to extend a user's profile to store extra-information such as his company name, title or phone number. I'm having trouble finding how to do so, or if it's possible or not (see here).
Can someone point me in the right direction?
Thanks,
Carl
Hi Carl,
We started working on custom properties and I hope that they will be available for Q1. Currently you can work only programmatically as written in the other post.
sample
ProfileManager profileManager = ProfileManager.GetManager();
var profileUser = profileManager.CreateProfile(user);
profileManager.SaveChanges();
var prof = profileManager.GetProfiles().Where(p => p.User.UserName ==
"newUser1"
).SingleOrDefault();
var getField = prof.GetValue(
"somefield"
);
prof.SetValue(
"someField"
,
"someValue"
);
profileManager.SaveChanges();