473,748 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Highlighting selected level 1 and level 2 menu items

Hi,
I'm using two menu controls. One is displayed at the top of the page. The
other menu is displayed on the left side using a single site map. The top
menu is for displaying level 1. The left menu is for displaying level 2.
These are all displaying just fine. That is when a menu item is selected on
the top, left menu reflects the submenu for the selected item. The only
problem I'm having is to get the top menu to have a highlighted status. Right
now, only the left menu has the highlighted status.

Does anyone know of a proper way to have both menu items highlighted at
the same time?

-Jeff
Jan 27 '07 #1
1 2714


On Jan 27, 1:44 am, Jeff Tu <Jef...@discuss ions.microsoft. comwrote:
Hi,
I'm using two menu controls. One is displayed at the top of the page. The
other menu is displayed on the left side using a single site map. The top
menu is for displaying level 1. The left menu is for displaying level 2.
These are all displaying just fine. That is when a menu item is selected on
the top, left menu reflects the submenu for the selected item. The only
problem I'm having is to get the top menu to have a highlighted status. Right
now, only the left menu has the highlighted status.

Does anyone know of a proper way to have both menu items highlighted at
the same time?

[snip]

In general terms I'd consider you looking into ScriptAculous for any
types of effects.
ScriptAculous has stuff like "Effect.Bli nd, Effect.Shake" etc.
It also builds on top of prototype which has stuff like
"Element.addCla ssName" etc.
Normally that's how _any_ menu system would do such a thing (change the
class name
for the "highlighte d menu")

How the Menu in VS works regarding highlighting I wouldn't know, mostly
because I wouldn't use it.
Mostly because more or less all other menu systems are by far better
then the one embedded in VS...
There's on in http://ajaxwidgets.com which also doesn't think you're
redirecting (by default) but rather will
be handled as a normal Ajax Request in the event handler for
MenuClicked from which you can do
whatever pleases you like for instance showing, hiding panels, windows,
DateTimePickers etc...

..t

Jan 27 '07 #2

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

Similar topics

4
19111
by: snowweb | last post by:
I am trying to implement a CSS hierarchical unfolding menu on a site. The thing is, it needs to be dynamically populated from the results of a database query. I previously had the menu working but then it was ‘hard coded’ and not built on the fly. Menu description: 2 top level items “Company” and “Products” (we will ignore “Company” since it is still hard coded and not causing a problem. Below “Products” we have hard coded “By...
0
1466
by: Wayne Erfling | last post by:
I put in the code below to disable self links in a menu control in a "master" page. It works properly if the top-level menu item has no children, but both ..Selected = false and .NavigateUrl = null are ignored if the top-level menu item has nested (child) menu items. This looks like a bug to me, and the documentation for .Selected suggests that it should be possible to disable a higher-level item while leaving the lower levels active. ...
2
3755
by: Claire | last post by:
I've a treeview control containing a root node with several children on a windows form. I select a node with a left mouse button click. I then select one of the other nodes with right mouse click to bring up my context menu. The Popup event of this enables menu items depending on the node selected. The new node highlights, and my context menu pops up but I noticed that the enabled state of the menu items was incorrect. Tracing into my...
0
1146
by: JJ | last post by:
I have a menu that only displays the top (static) level. I want to display a menu item as 'selected' not only when it is clicked on ,but when a user is accessing any page that is below that main pages' heirachy in the sitemap (which is the datasource for the menu). i.e. I want to have the parent item in the menu selected when a child page (based on the sitemap heirachy) is being accessed. Do I parse the sitemap file (note that I am...
18
2528
by: Ste | last post by:
Hi there, I'm using CSS to highlight main navigation items in a 'suckerfish menu' for the currently loaded page, i.e. when on the home page, the 'home' navigation item should be highlighted. I've almost got this working, except for some reason, the highlighted background block isn't quite covering the full area of the menu item. For example, see this beta page (via TinyURL): http://tinyurl.com/2bk78a
0
3576
by: rehanmomin | last post by:
Just to start off, I am writing a web application using C#. I have a Menu which is binded to an XML datasource. There are three menu items each with submenus and a textbox where I want to display the value of the selected menu item. Heres the XML datasource that I am using: <?xml version="1.0" encoding="utf-8" ?> <Home> <Menu text="Patient" description=" "> <SubMenu text="First Name" description="firstName"></SubMenu> ...
2
1997
by: alexandis | last post by:
I have menu bound to sitemap file. This is a piece of code <asp:menu ... > <StaticItemTemplate> <%# ((MenuItem)Container.DataItem).Selected ? : %> </StaticItemTemplate> </asp:menu> I check properties of menu items in my method and based on it decide, which element should be shown selected.
0
3311
by: divya1949 | last post by:
Create a windows c# application which will Read a xml file and populate nodes in the treeview. 1 On selection of treenode display the child nodes of that node in listview control 2. Provide following view properties to listview, through View menu a. Tile b. Icon
6
2062
TheServant
by: TheServant | last post by:
Hi all, I am trying to make a multi-level menu for my site, however all of the info comes from the database. In the database (which I can change if there is a better structure) there is a bit more, but all that is relevant is: id, name, title, ..., level, parent_id So I planned on grabbing everything from the database, then doing a nice little sorting script to give top items (level 1) one class, second level items another class plus put...
0
8995
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
8832
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
9378
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8250
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
6798
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
6077
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();...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3316
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
3
2216
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.