This documentation is archived and is not being maintained.

Wizard.StepNavigationTemplate Property

Gets or sets the template that is used to display the navigation area on any WizardStepBase-derived objects other than the Start, the Finish, or Complete step.

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

[<TemplateContainerAttribute(typeof(Wizard))>]
[<BrowsableAttribute(false)>]
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
abstract StepNavigationTemplate : ITemplate with get, set
[<TemplateContainerAttribute(typeof(Wizard))>]
[<BrowsableAttribute(false)>]
[<PersistenceModeAttribute(PersistenceMode.InnerProperty)>]
override StepNavigationTemplate : ITemplate with get, set
<asp:Wizard>
	<StepNavigationTemplate>ITemplate</StepNavigationTemplate>
</asp:Wizard>

Property Value

Type: System.Web.UI.ITemplate
An ITemplate that contains the template for displaying the navigation area on any WizardStepBase-derived objects of the Wizard control other than the Start, Finish, or Complete. The default is a null reference (Nothing in Visual Basic).

Use the StartNavigationTemplate property to specify the custom content that is displayed for the navigation area on the Step step of the Wizard control. Define the content by creating a template that specifies how the navigation area is rendered on the Step step.

The custom content for the template is contained within the StepNavigationTemplate object. You can add custom content to the StepNavigationTemplate object either by using template-editing mode in design view or by defining the StepNavigationTemplate object inline using StepNavigationTemplate tags. The content can be as simple as plain text or more complex (embedding other controls in the template, for example).

NoteNote

The StepNavigationTemplate object that is contained in the StepNavigationTemplate property must contain two IButtonControl controls, one with its CommandName property set to "MoveNext" and one with its CommandName property set to "MovePrevious", to enable the navigation feature.

To access a control that is defined in a template programmatically, use the Controls collection of the Wizard object. You can also use the FindControl method of the Wizard object to find the control, if the control has an ID property specified.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: