Gets or sets the index of the current WizardStepBase object.
Assembly: System.Web (in System.Web.dll)
The property provides the zero-based index of the WizardStepBase object that is currently displayed in the Wizard control. You can programmatically set the property to control which step is displayed to the user at run time.
If you are using Microsoft Visual Studio 2005, note that the is persisted in Source view. If you change the WizardSteps property in Design view by clicking the sidebar buttons, and you then run the page, the first step of the Wizard control might not be shown because the might be pointing to a different step.
If you set the value of to -1 to support a wizard with no steps by default, the following behavior occurs:
If you declaratively set to -1 or set it to -1 as a default value, the control will always try to render the first step in the wizard.
If you programmatically set to -1, the control will not render.
The following code example demonstrates how to use the property to set the ActiveStep property of the Wizard control. If the value of CheckBox1.Checked is true, the ActiveStep property is set to Wizard1.Step3; otherwise, the ActiveStep property is set to Wizard1.Step2.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.