Wizard.ActiveStep Property
Assembly: System.Web (in system.web.dll)
| Exception type | Condition |
|---|---|
| The corresponding ActiveStepIndex is less than -1 or greater than the number of WizardStepBase objects in the Wizard. |
The ActiveStep property returns the WizardStepBase object that is currently displayed in the Wizard control. The ActiveStep property is read-only; however, you can use the ActiveStep property to access the properties of the current WizardStepBase object. Use the ActiveStepIndex property to dynamically change the ActiveStep to a different WizardStepBase object. Alternatively, you can use the MoveTo method to dynamically set the ActiveStep property.
The following code example demonstrates how to use the ActiveStep property to determine which step to set as the next 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 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.