473,699 Members | 2,570 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_mnuLeftM enu_1
ctl00_mnuLeftMe nu_3". I then created "css" statements that looked like the
following:

a.ctl00_mnuLeft Menu_1 ctl00_mnuLeftMe nu_3:link { text-decoration: none;
font-weight:bold; color: White; }
a.ctl00_mnuLeft Menu_1 ctl00_mnuLeftMe nu_3:hover { text-decoration: none;
font-weight:bold; color: White; }
a.ctl00_mnuLeft Menu_1 ctl00_mnuLeftMe nu_3:visited { text-decoration: none;
font-weight:bold; color: White; }
a.ctl00_mnuLeft Menu_1 ctl00_mnuLeftMe nu_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.
<StaticMenuItem Style HorizontalPaddi ng="5px"
VerticalPadding ="2px" BackColor= "#2D7335" ForeColor="Whit e" Font-Bold="true"
/>
<StaticHoverSty le BackColor="Whit e"
ForeColor="Whit e" />
<StaticSelected Style BackColor="#2D7 335"
ForeColor="whit e" Font-Bold="true" />
<DynamicHoverSt yle BackColor="#284 E98"
ForeColor="Oran geRed" />
<DynamicMenuSty le BackColor="#629 C4F"
ForeColor="Whit e" />
<DynamicSelecte dStyle BackColor="#507 CD1"
ForeColor="Whit e"/>
<DynamicMenuIte mStyle HorizontalPaddi ng="5px"
VerticalPadding ="2px" ForeColor="blac k" />
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 1631

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

Similar topics

7
2692
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 server returned an error: (500) Internal Server Error." I found a post that suggested to catch the WebException to retrieve the actual HttpWebResponse object for more information. The response returned is shown below. At first I thought this was a...
7
2431
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 perfect. But if I put that exact same code inside a master page, when i go to view one of the files that use that master page, all of the submenus are out of wack and instead of being hidden, they are at the bottom of the menu, and only go back in...
4
3409
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 I have a theme and right now, the theme structure looks like... App_Themes --Authenticated ----Images ------Menu
0
1374
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 the entire menu. I'd like the menu to look like a datagrid. Here's my code. <form id="form1" runat="server"> <div> <asp:Menu ID="Menu1" runat="server" BackColor="#FFC080" BorderColor="Olive" BorderStyle="Ridge" BorderWidth="1px"...
2
5598
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"> <div> <asp:Menu ID="Menu1" runat="server" BackColor="#FFC080" BorderColor="Olive" BorderStyle="Ridge" BorderWidth="1px" ForeColor="Navy"> <Items>
2
9542
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 tags should I be setting for how the menu is eventually rendered? spans? tables? td? div? In the example below I resorted to using inline coloring and still not
2
5676
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 background color and text alignment as the top level item. Am I asking too much of the asp:menu control? I went the "-CssClass" route in order to get my menu option text to center, but this does not seem to play well with the styling properties...
0
2094
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 still wider than other items accross than items
3
5352
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; margin: 0; padding: 0;
3
2145
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 Text="Maintenance" Value="Maintenance"> <asp:MenuItem Text="Employee Maintenance " Value=" Employee Maintenance ">
0
8689
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8618
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8885
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7752
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6534
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2348
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.