Export (0) Print
Expand All

ChangePassword.ChangePasswordError Event

Occurs when there is an error changing the password for the user account.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public event EventHandler ChangePasswordError
<asp:ChangePassword OnChangePasswordError="EventHandler" />

The ChangePasswordError event is raised when the membership provider specified in the MembershipProvider property encounters an error while attempting to change the password for a user account. This can occur if the user enters an incorrect current password or an invalid new password. The specified MembershipProvider object does not indicate the reason why changing the password failed, only that the password was not changed.

Use the ChangePasswordError event to perform custom actions when the password is not changed.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft