Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello everyone,

I am building my asp menu, navigation menu, and I want to set the selected item as highlighted or a different color. My buttons are png images and I cannot seem to get them to be selected no matter what I try. My menu is dynamic based on the login type.

Any help would be great


my menu is below - it is on a master page


<asp:ContentPlaceHolder ID="contentMenu" runat="server">




and I build the menu items in the pageload of each aspx page as the menu is dynamic and depends on where you are in the system
Posted
Updated 7-Nov-13 10:26am
v2
Comments
JoCodes 7-Nov-13 1:17am    
Whats the code you have tried so far? tried setting the dynamicselectedstyle for the menu?
bobb024 7-Nov-13 14:34pm    
I have used dynamicselectedstyle and staticselected style as well as trying to invoice some looping code to see what is selected but to no avail. I have two sets of image buttons, one grey and one blue, over the hover and selection i would like to use the blue for each icon. I cant seem to get it working with css or javascript up until this point

See this article you will get your answer

Creating Menu Based on Role
 
Share this answer
 
yup... u should give ur images in a link format like anchor tag using in then give a src to the particular page....
u wnat to see like hightlight the menu then simplychange the color of a button i mean aattach another button to look like hifhlighted when mouse over button using java script chooses... thanking you
hopw it will help u.............
 
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