How to add/update an ASP.NET membership user profile?
Posted on 2010-09-17
I am developing an admin interface that allow an admin user to create a number of user accounts (using ASP.NET Membership) and specify profile information for each user, e.g. first name, last name, client name, etc. I have been experimenting with the SqlTableProfileProvider, since this creates separate fields in a database table.
However, when I am creating the profile and assign values to the profile using, e.g. Profile.FirstName it is setting my profile information, i.e. the current logged in user.
How do I add/update profile information for a user account? The user will also update sectios of their profile, but the admin needs to be able to update all user profiles.