MembershipUser user = Membership.GetUser(User.Identity.Name); if( user.ChangePassword(txtoldpassword.Text, txtNewpassword.Text)) { MyClass.MyAlert(this, "Successful", "123"); return; } else { MyClass.MyAlert(this, "Change failed. Please re-enter your values and try again", "123"); return; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)