menu bar : lighting up selected

liptonIcedTea

Well-known member
Joined
Jan 18, 2007
Messages
89
Programming Experience
1-3
Hi, I'm using a sitemap, to databind a Menu on my website.

This works very well, however, I would like the menu item to light up when I am on the page that it is referring to.

What is the easiest way to do this?
 
i can have the menu item highlighted before postback, but it seems to lose focus after postback.

Is there a way where I can get it to light up after postback?
 
i found the solution.

assign the cssclass for the menu in the Load event like this

Menu1.StaticSelectedStyle.CssClass = "menuItemSelected"


and then customise the menuItemSelected class in your css file!

easy!
 
Back
Top