views:

197

answers:

1

The following code does not set the comment:

string userName = "yrtre.etre.423369a9-3e57-42da-934d-dae91f87a1e4";
MembershipUser user = Membership.GetUser(userName);
user.Comment = "Test";

I get no exception. Any ideas?

A: 

You need to call UpdateUser to store your changes.

string userName = "yrtre.etre.423369a9-3e57-42da-934d-dae91f87a1e4";
MembershipUser user = Membership.GetUser(userName);
user.Comment = "Test";
Membership.UpdateUser(user);
svinto
THANK YOU!!! This did it!