CreateUserErrorEventArgs Class
Provides data for the CreateUserError event.
Assembly: System.Web (in System.Web.dll)
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.
The following is the .aspx file that can be used to run the preceding example.
- 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.
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.