Raises the ChangePassword.ChangedPassword event after the password is changed.
- e
An EventArgs object that contains the event data.
The ChangePassword.OnChangedPassword(EventArgs) method is called after the password is changed by the membership provider specified in the ChangePassword.MembershipProvider property. After the ChangePassword.OnChangedPassword(EventArgs) method is called, the following occurs:
If the ChangePassword.MailDefinition property is set, the System.Web.UI.WebControls.ChangePassword control attempts to send an e-mail message to the user.
The user is either redirected to the Web site specified in the ChangePassword.SuccessPageUrl property or the control template specified in the ChangePassword.SuccessTemplate property is displayed.
Raising an event invokes the event handler through a delegate. For more information, see Server Event Handling in ASP.NET Web Pages.
The ChangePassword.OnChangedPassword(EventArgs) method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.