CreateUserErrorEventArgs Class
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 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.