User-97501952 posted
Hi,
>What I can't figure out for some reason is how to access the exception thrown in the OnPasswordChangeError Method.
Do you mean that you want to access the exception content which is thrown in ChangePassword event from OnPasswordChangeError method? You may have a try to use a label to transfer the exception content. I mean you need to new the exception and
catch the exception in your ChangePassword method and assign the exception.ToString to the label. So you will get the label content from OnPasswordChangeError Method.
You can refer to the sample code in this link:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.changepassword.changingpassword(v=vs.110).aspx
> The server.GetLastError() returns a null. and what ever I do I can't get a hold of it. Or do I need to pass the exception somehow to the OnPasswordError method?
I think you may not catch the exception in your change password method, you can set breakpoint to debug your code.
By the way, you may also have a try to customize the changepassword control with adding the validation.
asp changepassword control customization
May