public static string PMSaveChangePassword(string loginname, string currentpassword, string newpassword) { try { CustomProfile profile = CustomProfile.GetProfile(); iUserCreationClient userClient = new iUserCreationClient(); MembershipUser u = Membership.GetUser(loginname); if (u.IsLockedOut == true) { u.UnlockUser(); } if (u.ChangePassword(currentpassword, newpassword) == true) { string Email = profile.Personal.EmailID; userClient.SavePasswordDetails(profile.Personal.UserID, Email, loginname, newpassword, profile.Personal.UserName, profile.DBConnection._constr); return("Saved"); } else { return(""); } } catch (Exception ex) { return(""); } finally { } }