Wizard.ActiveStep Property

Note: This property is new in the .NET Framework version 2.0.

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:
property WizardStepBase^ ActiveStep {
	WizardStepBase^ get ();
}
/** @property */
public WizardStepBase get_ActiveStep ()

public function get ActiveStep () : WizardStepBase

Property Value

The WizardStepBase that is currently displayed to the user.

Exception typeCondition

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.

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.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: