System.Web.UI.WebControls.Wizard.ActiveStepIndex Property

Gets or sets the index of the current System.Web.UI.WebControls.WizardStepBase object.

Syntax

[System.Web.UI.Themeable(false)]
[System.ComponentModel.DefaultValue(-1)]
public virtual int ActiveStepIndex { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Wizard.ActiveStepIndex property provides the zero-based index of the System.Web.UI.WebControls.WizardStepBase object that is currently displayed in the System.Web.UI.WebControls.Wizard control. You can programmatically set the Wizard.ActiveStepIndex property to control which step is displayed to the user at run time.

Note:

If you are using Microsoft Visual Studio 2005, note that the Wizard.ActiveStepIndex is persisted in Source view. If you change the Wizard.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 Wizard.ActiveStepIndex might be pointing to a different step.

If you set the value of Wizard.ActiveStepIndex to -1 to support a wizard with no steps by default, the following behavior occurs:

  • If you declaratively set Wizard.ActiveStepIndex 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 Wizard.ActiveStepIndex to -1, the control will not render.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

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