System.Web.UI.WebControls.CreateUserWizard.OnCreateUserError Method

Raises the CreateUserWizard.CreateUserError event when there is a problem creating the specified user account.

Syntax

protected virtual void OnCreateUserError (CreateUserErrorEventArgs e)

Parameters

e
A System.Web.UI.WebControls.CreateUserErrorEventArgs with the data for the event.

Remarks

The CreateUserWizard.OnCreateUserError(CreateUserErrorEventArgs) method is called when the membership provider specified in the CreateUserWizard.MembershipProvider property returns an error message from creating the specified user account. The CreateUserErrorEventArgs.CreateUserError property of the System.Web.UI.WebControls.CreateUserErrorEventArgs object passed as the e parameter contains a System.Web.Security.MembershipCreateStatus object that contains the details of the error.

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The CreateUserWizard.OnCreateUserError(CreateUserErrorEventArgs) 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.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0