以下代码不设置注释:
string userName = "yrtre.etre.423369a9-3e57-42da-934d-dae91f87a1e4"; MembershipUser user = Membership.GetUser(userName); user.Comment = "Test";
我也不例外.有任何想法吗?
解决方法
您需要调用UpdateUser来存储您的更改.
string userName = "yrtre.etre.423369a9-3e57-42da-934d-dae91f87a1e4"; MembershipUser user = Membership.GetUser(userName); user.Comment = "Test"; Membership.UpdateUser(user);