This documentation is archived and is not being maintained.

Wizard.LayoutTemplate Property

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.

    <form id="form1" runat="server">
   <asp:Wizard ID="Wizard1" runat="server">
      <asp:PlaceHolder ID="headerPlaceHolder" runat="server" />
      <asp:PlaceHolder ID="navigationPlaceHolder" runat="server" />

      <asp:PlaceHolder ID="sideBarPlaceHolder" runat="server" />

      <asp:PlaceHolder ID="WizardStepPlaceHolder" runat="server" />

    <asp:ListView ID="sideBarList" runat="server">
        <div id="ItemPlaceHolder" runat="server"/>

         <asp:LinkButton ID="sideBarButton" runat="server" 
             Text="Button" />


     Header content.

    <asp:WizardStep ID="WizardStep1" runat="server" Title="Step 1">
        Step 1 Content.
  <asp:WizardStep ID="WizardStep2" runat="server" Title="Step 2">
        Step 2 Content.


.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, 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.