In my asp.net Web app. I have a change password form that is not working properly. I set the LoginEvent cancel to false when it has changed. It changes ok, but the control thinks that it fails. Is there something else I need to do?
control.Objects.User user = GlobalClass.GlobalVariables.User;
string currentRealPassword = control.Data.Users.GetUserPassword(user);
if (user != null && ChangeUserPassword.CurrentPassword.Trim() == currentRealPassword)
{
e.Cancel = !control.Data.Users.UpdateUserPassword(user, ChangeUserPassword.NewPassword);
}`enter code here`
Hm…the code doesn’t helps:P
What “UpdateUserPassword” Returns? suppose bool.
One hint… C# is OOP:P
Are you comming from php?