System.Web.UI.WebControls.CreateUserWizardStep Class

Contains basic functionality for creating a user in a step that can be templated. This class cannot be inherited.

See Also: CreateUserWizardStep Members


public sealed class CreateUserWizardStep : TemplatedWizardStep


The System.Web.UI.WebControls.CreateUserWizard control creates new user accounts in a Web site's user data store. The System.Web.UI.WebControls.CreateUserWizardStep is, by default, the first step within the System.Web.UI.WebControls.CreateUserWizard control. The System.Web.UI.WebControls.CreateUserWizardStep step is a required step within the System.Web.UI.WebControls.CreateUserWizard control.

The System.Web.UI.WebControls.CreateUserWizardStep class is derived from the System.Web.UI.WebControls.TemplatedWizardStep class. The System.Web.UI.WebControls.CreateUserWizardStep is displayed in the System.Web.UI.WebControls.CreateUserWizard control before the System.Web.UI.WebControls.CompleteWizardStep step.


Although the System.Web.UI.WebControls.CreateUserWizardStep step is the first step in the wizard by default, it is possible to provide a different first step. Doing so, however, can affect whether the Previous button is displayed. For example, if the System.Web.UI.WebControls.CreateUserWizardStep step does not have a custom navigation template, and is preceded by another step that is rendered before System.Web.UI.WebControls.CreateUserWizardStep, then the Previous button is displayed on the System.Web.UI.WebControls.CreateUserWizardStep step at run time. If the System.Web.UI.WebControls.CreateUserWizardStep step is rendered before the alternate "first" step, then the Previous button is not displayed. Furthermore, the Previous button is never rendered at design time. If you want the Previous button to be rendered at design time, you must add it to the custom navigation template of the System.Web.UI.WebControls.CreateUserWizardStep step.

You can modify the System.Web.UI.WebControls.CreateUserWizardStep step to contain additional fields, or change the display order of the fields included in the System.Web.UI.WebControls.CreateUserWizardStep step, by editing the template associated with the control.

The new Web site user account is created in the data store when the user clicks the Next button on the System.Web.UI.WebControls.CreateUserWizardStep step. By default, the CreateUserWizardStep.AllowReturn property is set to false to keep the user from returning to the System.Web.UI.WebControls.CreateUserWizardStep step and accidentally attempting to create another user account with the same credentials. If you set the CreateUserWizardStep.AllowReturn property to true, you must include logic in your application to remove the user account that was originally created before the user returned to this step, or to allow the user to edit information he or she originally entered.


Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0