Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 CreateUserError Event
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
CreateUserWizard..::.CreateUserError Event

Updated: November 2007

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

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

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);
}
J#
/** @event */
public void add_CreateUserError (CreateUserErrorEventHandler value)
/** @event */
public void remove_CreateUserError (CreateUserErrorEventHandler value)
JScript
JScript does not support events.
ASP.NET
<asp:CreateUserWizard OnCreateUserError="CreateUserErrorEventHandler" />

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.

Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, 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.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
When handling the CreateUserErrorEvent      Tamer Mahfouz   |   Edit   |  
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 What's this?: Add a tag
Flag as ContentBug
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker