CreateUserErrorEventArgs Class
.NET Framework 3.0
Provides data for the CreateUserError event.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
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.
Community Additions
ADD
Show: