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 ...