Wizard::ActiveStep Property

 

Gets the step in the WizardSteps collection that is currently displayed to the user.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
[BrowsableAttribute(false)]
property WizardStepBase^ ActiveStep {
	WizardStepBase^ get();
}

Property Value

Type: System.Web.UI.WebControls::WizardStepBase^

The WizardStepBase that is currently displayed to the user.

Exception Condition
InvalidOperationException

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: