Assuming you don’t need security questions /Answer function, you can call the ResetPassword() method in the membership API, and then use the return value of the method as the old value of ChangePassword().
Something like this:
Membership.GetUser().ChangePassword(Membership.GetUser().ResetPassword(), "new password");
If you need a secure Q&A, you can use more complicated hack.
How to directly change the password manual in the table member? passwordformat = 1, then how to encrypt the password before inserting into the table?
There is a hack you can use:
Assuming you don’t need the security question/answer function, you can call it in the membership API ResetPassword() method, and then use the return value of the method as the old value of ChangePassword().
Something like this:
Membership.GetUser( ).ChangePassword(Membership.GetUser().ResetPassword(), "new password");
If you need security Q&A, you can use more complicated hack.