Επεξεργασία

Κοινή χρήση μέσω


CreateUserWizard.CreateUserStep Property

Definition

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

public:
 property System::Web::UI::WebControls::CreateUserWizardStep ^ CreateUserStep { System::Web::UI::WebControls::CreateUserWizardStep ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Web.UI.WebControls.CreateUserWizardStep CreateUserStep { get; }
[<System.ComponentModel.Browsable(false)>]
member this.CreateUserStep : System.Web.UI.WebControls.CreateUserWizardStep
Public ReadOnly Property CreateUserStep As CreateUserWizardStep

Property Value

A CreateUserWizardStep value that represents the user account creation step.

Attributes

Remarks

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.

Applies to

See also