Quantcast
Channel: DataSource Controls - SqlDataSource, ObjectDataSource, etc.
Viewing all articles
Browse latest Browse all 956

Update just 'Comments' MembershipUser Property

$
0
0

I am trying to update just the 'Comments' property in ASP. NET MembershipUser and want to leave all other property untouched. Here is my codes

MembershipUser userComments = Membership.GetUser(sUserName);
userComments.Comment = "Need Change Password";
Membership.UpdateUser(userComments);

It throws an expection 'The E-mail supplied already exists in the database for the application' at Membership.UpdateUser(userComments);

How can I just update only the 'Comments' without changing emails or any other properties?


Viewing all articles
Browse latest Browse all 956

Trending Articles