ChangePassword.ChangePasswordError Event

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

member ChangePasswordError : IEvent<EventHandler,
    EventArgs>

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
Available since 2.0
Return to top
Show: