.NET Framework Class Library
CreateUserWizard..::.CreateUserError Event

Occurs when the membership provider cannot create the specified user account.

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

Visual Basic (Declaration)
Public Event CreateUserError As CreateUserErrorEventHandler
Visual Basic (Usage)
Dim instance As CreateUserWizard
Dim handler As CreateUserErrorEventHandler

AddHandler instance.CreateUserError, handler
C#
public event CreateUserErrorEventHandler CreateUserError
Visual C++
public:
 event CreateUserErrorEventHandler^ CreateUserError {
    void add (CreateUserErrorEventHandler^ value);
    void remove (CreateUserErrorEventHandler^ value);
}
JScript
JScript does not support events.
ASP.NET
<asp:CreateUserWizard OnCreateUserError="CreateUserErrorEventHandler" />
Remarks

The CreateUserError event is raised on the server when the membership provider specified in the MembershipProvider property fails to create the specified user account.

The error handler is passed a MembershipCreateStatus object that contains the details of the failure from the membership provider. For a list of the possible error conditions, see MembershipCreateStatus.

For more information about handling events, see Consuming Events.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0
See Also

Reference

Other Resources

Tags :


Community Content

Tamer Mahfouz
When handling the CreateUserErrorEvent
When handling the CreateUserErrorEvent the Error Message of the CreateUserWizard control will not function properly and you have to handle the generated errors by your own, also the Label with the ID="ErrorMessage" will not render!
Tags :

Page view tracker