System.Web.UI.WebControls.Wizard.AllowNavigationToStep Method

Uses a Boolean value to determine whether the Wizard.ActiveStep property can be set to the System.Web.UI.WebControls.WizardStepBase object that corresponds to the index that is passed in.

Syntax

protected virtual bool AllowNavigationToStep (int index)

Parameters

index
The index of the System.Web.UI.WebControls.WizardStepBase object being checked.

Returns

false if the index passed in refers to a System.Web.UI.WebControls.WizardStepBase that has already been accessed and its WizardStepBase.AllowReturn property is set to false; otherwise, true.

Remarks

The Wizard.AllowNavigationToStep(int) method can be accessed from a derived class only because of its protected modifier. In a derived class, you can use the Wizard.AllowNavigationToStep(int) method to determine whether the index that is passed in can be used to set the Wizard.ActiveStepIndex property. The Wizard.AllowNavigationToStep(int) method will return false if the index that is passed in refers to a System.Web.UI.WebControls.WizardStepBase object that has already been accessed and has its WizardStepBase.AllowReturn property set to false; otherwise, it will return true.

Requirements

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