Export (0) Print
Expand All
Expand Minimize

CreateUserWizard.CreateUserStep Property

Gets a reference to the template for the user account creation step.

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

[BrowsableAttribute(false)]
public CreateUserWizardStep CreateUserStep { get; }

Property Value

Type: System.Web.UI.WebControls.CreateUserWizardStep
A CreateUserWizardStep value that represents the user account creation step.

The CreateUserStep property defines the account creation step of a CreateUserWizard control. This property is read-only; however, you can set the properties of the CreateUserWizardStep object that CreateUserStep returns.

The following table lists the required and optional controls that are supported when using templated content for the CreateUserStep.

ID or command name

Control type

Required/optional

UserName

Any control that implements IEditableTextControl, including TextBox, or a custom or third-party control.

Required

Password

Any control that implements IEditableTextControl, including TextBox, or a custom or third-party control.

Required if AutoGeneratePassword is set to false.

Email

Any control that implements IEditableTextControl, including TextBox, or a custom or third-party control.

Required if RequireEmail is true.

ConfirmPassword

Any control that implements IEditableTextControl, including TextBox, or a custom or third-party control.

No requirements

Question

Any control that implements IEditableTextControl, including TextBox, or a custom or third-party control.

Optional unless required by membership.

Answer

Any control that implements IEditableTextControl, including TextBox, or a custom or third-party control.

Optional unless required by membership.

ErrorMessage

Any control that implements ITextControl.

Optional

CreateUser

Any control that causes event bubbling

Optional

Cancel

Any

Optional

If the RequireEmail property is set to true and you are using templated content, the Email control is required; the CreateUserWizard control throws an exception if the Email control is not found or is of the wrong type. If RequireEmail is set to false, no exception is thrown if the Email control is not found. If the control is of the wrong type, it is ignored.

Similarly, if a membership provider requires a question and answer (determined by the QuestionAndAnswerRequired property), the Question and Answer controls are required and the CreateUserWizard throws an exception if they are not found or are of the wrong type. If they are not required by the membership provider, no exception is thrown if they are not found, and if they are of the wrong type they are ignored.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft