Posted on: 5/16/2012 10:18:04 AM | Views : 220

Hey Folks,
I can't figure out how to change an existing user's password.  I'm using membership in VS10 .NET 4.0.  I want to update an existing user's password if the user exists, and I cannot figure out how to update the password.
string sUser = TextBoxUserName.Text.Trim();
string sPwd = TextBoxPwd.Text.Trim();
MembershipCreateStatus status;
try { // add if the user exists
Membership.CreateUser(sUser, sPwd, ... , out status);
if( status == MembershipCreateStatus.DuplicateUserName )
{ // Update the password ??? }
}
catch ( Exception eX) {
LabelError.Text = eX.Message; }
I just can't find the API to update teh password - like Membership.UpdatePassword("Dave","NewWorld");
Thanks ...
...

Go to the complete details ...