Asp.Net: Wizard control highlight selected step

by Pieter Brinkman 26. March 2009 06:42

You can highlight the selected stap of the wizard control by editing the SideBarTemplate within the asp:Wizard control.

<SideBarTemplate>                        
    <asp:datalist runat="Server" id="SideBarList">
        <ItemTemplate>
          <asp:linkbutton runat="server" ID="SideBarButton"/>
       </ItemTemplate>
       <SelectedItemTemplate>
           <asp:LinkButton ID="SideBarButton" runat="server" CssClass="selected">LinkButton</asp:LinkButton>
       </SelectedItemTemplate>
   </asp:datalist>
</SideBarTemplate>


The ItemTemplate and the SelectedItemTemplate need to have a Button with ID SideBarButton.

 

Categories: ASP.Net | Controls

Comments

Mark
Mark United Kingdom on 7/11/2009 3:55:03 PM

Useful post - Just subscribed to your RSS feed.. Thanks