Documentation for this section has not yet been entered.
The CreateUserWizard.CreateUserStep property defines the account creation step of a System.Web.UI.WebControls.CreateUserWizard control. This property is read-only; however, you can set the properties of the System.Web.UI.WebControls.CreateUserWizardStep object that CreateUserWizard.CreateUserStep returns.
The following table lists the required and optional controls that are supported when using templated content for the CreateUserWizard.CreateUserStep.
UserName |
Any control that implements System.Web.UI.IEditableTextControl, including System.Web.UI.WebControls.TextBox, or a custom or third-party control. |
Required |
Password |
Any control that implements System.Web.UI.IEditableTextControl, including System.Web.UI.WebControls.TextBox, or a custom or third-party control. |
Required if CreateUserWizard.AutoGeneratePassword is set to false. |
Any control that implements System.Web.UI.IEditableTextControl, including System.Web.UI.WebControls.TextBox, or a custom or third-party control. |
Required if CreateUserWizard.RequireEmail is true. | |
ConfirmPassword |
Any control that implements System.Web.UI.IEditableTextControl, including System.Web.UI.WebControls.TextBox, or a custom or third-party control. |
No requirements |
Question |
Any control that implements System.Web.UI.IEditableTextControl, including System.Web.UI.WebControls.TextBox, or a custom or third-party control. |
Optional unless required by membership. |
Answer |
Any control that implements System.Web.UI.IEditableTextControl, including System.Web.UI.WebControls.TextBox, or a custom or third-party control. |
Optional unless required by membership. |
ErrorMessage |
Any control that implements System.Web.UI.ITextControl. |
Optional |
CreateUser |
Any control that causes event bubbling |
Optional |
Cancel |
Any |
Optional |
If the CreateUserWizard.RequireEmail property is set to true and you are using templated content, the CreateUserWizard.Email control is required; the System.Web.UI.WebControls.CreateUserWizard control throws an exception if the CreateUserWizard.Email control is not found or is of the wrong type. If CreateUserWizard.RequireEmail is set to false, no exception is thrown if the CreateUserWizard.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 CreateUserWizard.QuestionAndAnswerRequired property), the CreateUserWizard.Question and CreateUserWizard.Answer controls are required and the System.Web.UI.WebControls.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.