public static bool ChangePassword(string userName, string currentPassword, string newPassword) { VerifyProvider(); bool success = false; try { dynamic currentUser = Membership.GetUser(userName, true); success = currentUser.ChangePassword(currentPassword, newPassword); } catch (ArgumentException generatedExceptionName) { } return success; }