This documentation is archived and is not being maintained.

CreateUserErrorEventArgs Class

Provides data for the CreateUserError event.

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

public ref class CreateUserErrorEventArgs : public EventArgs
public class CreateUserErrorEventArgs extends EventArgs
public class CreateUserErrorEventArgs extends EventArgs
Not applicable.

A CreateUserError event is raised when an attempt to create a new user with the CreateUserWizard control fails. The CreateUserErrorEventArgs class provides the CreateUserError property to indicate the MembershipCreateStatus enumeration value that corresponds to the error that occurred.

In the following example, when the CreateUserError event is raised, the CreateUserError property of the CreateUserErrorEventArgs object is displayed in a Label control, Label1, to provide information on why the CreateUserError event occurred.

No code example is currently available or this language may not be supported.

The following is the .aspx file that can be used to run the preceding example.

No code example is currently available or this language may not be supported.

  • AspNetHostingPermission  for operating in a hosted environment. Demand value: LinkDemand. Permission value: Minimal.
  • AspNetHostingPermission  for operating in a hosted environment. Demand value: InheritanceDemand. Permission value: Minimal.

System.Object
   System.EventArgs
    System.Web.UI.WebControls.CreateUserErrorEventArgs

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: