Raises the CreateUserWizard.CreateUserError event when there is a problem creating the specified user account.
- e
- A System.Web.UI.WebControls.CreateUserErrorEventArgs with the data for the event.
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.