Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys!

I have a horizontal menu bar(Home,Register,About Us). Now, what I want is that when I selected an item in my menu, it will change its color so that I know on what page I am working with. Lets say, the original color of the menu bar is Blue. When I select an item (the Register bar) in the menu bar, from Blue it will turn to green, and the remaining menu items(Home and About Us) are still blue. Can anyone help me?
Posted
Updated 5-Aug-14 17:42pm
v4

1 solution

You can use javascript to change the color of selected menu item and also Session object to change the color

Check this article on codeproject
Menu Control Selected Item Color Change Depending on Selection [^]

and check these posts too
http://forums.asp.net/t/1472219.aspx?Change+background+color+of+current+page+in+Menu+bar[^]

http://stackoverflow.com/questions/18317923/how-to-change-a-colore-of-menu-bar-when-user-click-on-net-link[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900