Posted on: 8/14/2014 5:16:40 PM | Views : 479

I have added a menu control and then added 2 menu items from code behind that displays the count. 
How can I style these items. on page load the active is selected and should be light blue and Inactive should be different color but when Inactive is clicked it becomes light blue.
Here is my code
<asp:Menu ID="Menu1" Width="168px" runat="server" Orientation="Horizontal" StaticEnableDefaultPopOutImage="False" OnMenuItemClick="Menu1_MenuItemClick"> </asp:Menu> below is code behind List<User> adminsearch = db.GetActiveStudentsByParentID(UserID); listcount = adminsearch.Count().ToString(); List<User> adminsearch2 = db.GetInactiveStudentsByParentID(UserID); Menu1.Items.Clear(); Menu1.Items.Add(new MenuItem("Active" + "(" + listcount + ")", "0")); listcount = adminsearch2.Count() ...

Go to the complete details ...