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!
4 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MarcPosted Oct 1, 2014, 2:29 PM
Wim SturkenboomPosted Sep 30, 2014, 12:46 PM
otherclass cl = new otherclass();
cl.ChangePassword(.....)
Alternatively you can declare the method static
in which case you can do
otherclass.ChangePassword(.....)
MarcPosted Sep 30, 2014, 8:22 AM
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.
Munesh SharmaPosted Sep 30, 2014, 2:42 AM
http://www.msdotnet.co.in/2014/05/how-to-change-password-in-aspnet.html#.VCpOdpzWL_M