LayoutTemplate Property

Wizard.LayoutTemplate Property

.NET Framework (current version)

Gets or sets the custom content of the root container in a Wizard control.

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

public virtual ITemplate LayoutTemplate { get; set; }

Property Value

Type: System.Web.UI.ITemplate

An object that contains the custom content for the root container in a Wizard control. The default is null, which indicates that this property is not set.

You can use the LayoutTemplate property to define a custom user interface (UI) for the Wizard control. To specify a layout template, add a LayoutTemplate element inside the Wizard control markup. Inside the LayoutTemplate element, add placeholders for the components of the Wizard control. Placeholders for the navigation, sidebar, and wizard-step sections of the Wizard control are required in the LayoutTemplate element.


You can modify the layout template in Source view. Editing the layout template in Design view is not supported.

The following example shows how to add a LayoutTemplate element to the Wizard control and how to format the components of the Wizard control by using div elements. When the control renders, the div elements will be used instead of HTML tables to format the control.

.NET Framework
Available since 4.0
Return to top
© 2016 Microsoft