I am implementing ASP.Net menu control in our application. I want to highlight with color to selected menu item after the post back in menu control. I have added the style color in Style.css file, and setting the CssClass name as mentioned below.
<asp:Menu ID="NavigationMenu" runat="server" CssClass="menu" EnableViewState="true" IncludeStyleBlock="false" Orientation="Horizontal">
<Items>
<asp:MenuItem NavigateUrl="~/UI/Accounts.aspx" Text="Accounts"/>
<asp:MenuItem NavigateUrl="~/UI/Messages.aspx" Text="Messages"/>
</Items>
<staticselectedstyle CssClass="staticSelectedStyle" />
<StaticMenuItemStyle CssClass="staticMenuItemStyle" />
</asp:Menu>
But this is not affected the selected menu item color change. Please suggest me any solution.
0 comments:
கருத்துரையிடுக