Author: john.lam | Posted on: 11/5/2009 6:23:15 PM | Views : 446

Hi,
I'm using .Net 3.5. Recently I found that my program couldn't update the information in the table aspnet_Membership. Here is my code:
protected void UpdateUserDetails(object sender, EventArgs e) { if (IsPostBack) { try { MembershipUser user = Membership.GetUser(userName); if (!String.IsNullOrEmpty(Password.Text) & !String.IsNullOrEmpty(ConfirmPassword.Text)) user.ChangePassword(user.GetPassword(), Password.Text); if (Email != null) user.Email = Email.Text; user.IsApproved = Approved.Checked; if (!LockedOut.Checked) { user.UnlockUser(); LockedOut.Enabled = false; } Membership.UpdateUser(user); UserProfile.SavePr ...

Go to the complete details ...