Connecting Tech Pros Worldwide Forums | Help | Site Map

Active menus: how can I do this elegantly?

Ken Fine
Guest
 
Posts: n/a
#1: Nov 17 '05
I'm an ASP.NET newbie, so please be gentle...

I want to make an "active" navigation menu that indicates selection to the
user by turning the nav text red. One easy way to do this is to compare a
QueryString to a value, and write red text if it matches.

The really dumb way to do this would be to define if...else conditions for
each item on the menu.

It seems like a better way would be to have a dynamic comparison happen. I'm
not sure how to set this up. Can someone point me in the right direction?





Closed Thread