Friday, 4 May 2012 PasswordRecovery control uses ControlState to persist data

Took me a while to figure out why PasswordRecovery control persisted its "Success" state between postbacks if MailError happened, even when EnableViewState="false"

One of its internal properties is CurrentView which can be UserName or Success. This property is not available for use and it is persisted between postbacks in the ControlState.

My problem was that the state of the control stayed as "Success" after I catched the smtp error in OnSendMailError handler by setting e.Handled = true.

No comments:

Post a Comment