Good day all, I am trying to use the change password control.. unfortunately, the change password control does not work on my own application, however, the change question and answer works below is my sample
string Username = Convert.ToString(HttpContext.Current.Session[username]);
MembershipUser user = Membership.GetUser(Username);
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;
}
/*when i input the correct Password, it will successfully change but i can still be able to log in with the old password but can not log i ...
Go to the complete details ...