473,386 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ASP:Menu

I am have a ASP:Menu with static and dynamic menu items. Each of the static
items has dynamic menu items. If the user clicks on a static menu item,
which has no click event, then menu item changes to a different color which
makes it dissapear. It only becomes visable if I move my cursor over the
static menu item. I changed my page link properties for "a:visited" and
change the color to the value I needed, and this cleared up the problem, but
create another, as all other links absorb that same characteristic, which
makes those links disappear.

When I look at the HTML code which is generated, I see that each of the menu
items is an anchor tag "<a" with a class identifier of "ctl00_mnuLeftMenu_1
ctl00_mnuLeftMenu_3". I then created "css" statements that looked like the
following:

a.ctl00_mnuLeftMenu_1 ctl00_mnuLeftMenu_3:link { text-decoration: none;
font-weight:bold; color: White; }
a.ctl00_mnuLeftMenu_1 ctl00_mnuLeftMenu_3:hover { text-decoration: none;
font-weight:bold; color: White; }
a.ctl00_mnuLeftMenu_1 ctl00_mnuLeftMenu_3:visited { text-decoration: none;
font-weight:bold; color: White; }
a.ctl00_mnuLeftMenu_1 ctl00_mnuLeftMenu_3:active { text-decoration: none;
font-weight:bold; color: White; }

Hoping that after someone selects it, it will remain "white" in color. When
I desplay the menu, before I do anything, all the menu items are not White,
but are a color which makes them invisible on the screen. I also have the
following to get the coloring the way I want it.
<StaticMenuItemStyle HorizontalPadding="5px"
VerticalPadding="2px" BackColor= "#2D7335" ForeColor="White" Font-Bold="true"
/>
<StaticHoverStyle BackColor="White"
ForeColor="White" />
<StaticSelectedStyle BackColor="#2D7335"
ForeColor="white" Font-Bold="true" />
<DynamicHoverStyle BackColor="#284E98"
ForeColor="OrangeRed" />
<DynamicMenuStyle BackColor="#629C4F"
ForeColor="White" />
<DynamicSelectedStyle BackColor="#507CD1"
ForeColor="White"/>
<DynamicMenuItemStyle HorizontalPadding="5px"
VerticalPadding="2px" ForeColor="black" />
So am I missing a setting somewhere? It appears that the value which is
specified for the page "a:visited" will control the link color no matter what.

Thanks in advance for your assistance!!

May 1 '07 #1
0 1603

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
7
by: tfsmag | last post by:
Has anyone had a problem with putting a menu control into a master page in .net 2.0? I have a problem where if i just drop a menu control on a regular page the menu works fine, the submenus work...
4
by: Ben | last post by:
Hi, I'm using images in my menu control. I have my menu setup based on this example: http://msdn2.microsoft.com/en-US/library/system.web.ui.webcontrols.menuitembinding.imageurlfield(VS.80).aspx ...
0
by: jason | last post by:
Playing around with asp.net 2.0 and asp:menu for the first time.. what's the attribute/code so that each item in my menu has a *SEPERATE* border around it? Seems I can only make the border around...
2
by: jason | last post by:
Does anybody know how I would get borders around each menuitem? Do I have incorportate into a table? Thanks. The below produces a border around the entire menu. <form id="form1" runat="server">...
2
by: Kevin L. Kitchens | last post by:
Howdy... Been toying the the asp:menu object in order to dump the manually generated menu I've been using, however, I cannot seem to get the coloring to work properly. First off, what CSS...
2
by: Steve Richter | last post by:
I would like to have a standard site navigation menu, horizontal across the page, at the top of the page. When I hover over a top level menu item I want a drop down menu to appear with the same...
0
by: jobs | last post by:
Hi. I have a menu horizontal on the top. I figured out that if I set this property the black arrow on parent items goes away.. StaticEnableDefaultPopOutImage="False" However, the item is...
3
by: kenny bones | last post by:
Hi! I'm currently working on a menu which is based on CSS and is listed with <li> tags. The CSS code looks like this: #nav { position: absolute; top: 101px; left: 390px; list-style: none;...
3
by: win | last post by:
I've create menu in a webform. <asp:Menu ID="Menu1" runat="server" CssClass="toolbar" Orientation="Horizontal"> <Items> <asp:MenuItem Text="Master" Value="Master"> <asp:MenuItem...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.