I have a procedure that I can call and allow the user to change the password. The problem is that I am not calling it correctly and its telling me that the method or operation is not implemented.
Stored Procedure:
public void ChangePassword(string userId, string strOldPassword, string strNewPassword)
{
//Process
}
My Application:
bool returnValue = user.ChangePassword();
if (returnValue == true)
{
//do something here
}
if (returnValue == true)
{
//do something here
}
The process returns a bool, which is why I though I could set its value as true in the if statement. I am trying to pull off the local userID and passwords and not change the default ID and password.
Thanks!

Munesh SharmaRank #174 · 13.9K reputationPosted Sep 29, 2014, 10:42 PM EDT
http://www.msdotnet.co.in/2014/05/how-to-change-password-in-aspnet.html#.VCpOdpzWL_M
Marc176 reputationPosted Sep 30, 2014, 4:22 AM EDT
Domain user = new Domain();
user.ChangePassword("user", "oldPassword", "newPassword");
but am receiving the error that user doesn't allow for the password to be changed.
user.ChangePassword already looks up the user to see if the password can be changed, so I'm not understanding why I would have to get the account information again before accessing this method.
Wim SturkenboomRank #2,527 · 554 reputationPosted Sep 30, 2014, 8:46 AM EDT
otherclass cl = new otherclass();
cl.ChangePassword(.....)
Alternatively you can declare the method static
in which case you can do
otherclass.ChangePassword(.....)
Marc176 reputationPosted Oct 1, 2014, 10:29 AM EDT