Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How to change the font color of a visited item of a ASP menu

Avatar of Rositta
RosittaFlag for United States of America asked on
ASPCSS.NET Programming
4 Comments1 Solution536 ViewsLast Modified:
I have a main menu. Some of the items will have a submenu. When I choose a item which has a submenu I want to have the font color of the item which has been chosen in a different color.  I want to set the same behavior when using a.visited

I would like to do this to see clearly which item of menu has been chosen. I have used "DynamicSelectedStyle" for that but when I use it, the font color of the chosen item doesn´t change.  I also used StaticSelectedStyle-ForeColor property but it didn't work either.
 Am I using the correct instruction for this?
<asp:SiteMapDataSource ID="MyMenu" runat="server" 
     ShowStartingNode="True"         StartFromCurrentNode="False"                     StartingNodeUrl="~/MyPage.aspx" />                                  
   <asp:Menu ID="Menu1" runat="server"
<StaticMenuItemStyle  CssClass="MenuLevel0" />                                
     <StaticHoverStyle CssClass="MenuLevel0Hover" /> 
     <StaticSelectedStyle CssClass="MenuLevel0Visited" />
     <DynamicMenuStyle CssClass="adjustedZIndex" /> 
     <DynamicMenuItemStyle CssClass="MenuLevel1" /> 
     <DynamicHoverStyle CssClass="MenuLevel1Hover" /> 

And here are the styles
	color:Black; font-size:small; 

	color: White; 

	color: Black; font-size:small;	


Avatar of Rositta
RosittaFlag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answers