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.

 

Tags: , , ,

ASP.Net | Controls

Comments

7/11/2009 3:55:03 PM #

Mark

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

Mark United Kingdom

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About Me

My name is Pieter Brinkman I am Solution Architect for Sitecore in The Netherlands. My interests are mainly ASP.NET, MSSQL and Content Management Systems.

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

RecentComments

Comment RSS

Most comments