473,327 Members | 1,896 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,327 software developers and data experts.

ASP.NET 2.0 Menu

Hi,

I have an ASP.NET 2.0 Menu control bound to the following sitemap
structure:

Root
Page 1
Page 1.1
Page 1.2
Page 1.2.1
Page 2

Now, if I expand Page 1 -Page 1.2 and click on Page 1.2.1, I can
change the background color (for example) of node 1.2.1 to show the
user that he/she is currently on Page 1.2.1. But what I really want to
do is highlight the entire path (i.e. change the background color of
nodes Page 1, Page 1.2 and Page 1.2.1). Is that possible and if so, how
do I do that?

Brgds / Niklas

Nov 1 '06 #1
3 1072
By default, it is not possible. You can inherit from the menu control and
add the ability to change style on the entire hierarchy, however. It will
likely be a lot of work, as the actual work is done client side with
JavaScript.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
<so*************@hotmail.comwrote in message
news:11**********************@e64g2000cwd.googlegr oups.com...
Hi,

I have an ASP.NET 2.0 Menu control bound to the following sitemap
structure:

Root
Page 1
Page 1.1
Page 1.2
Page 1.2.1
Page 2

Now, if I expand Page 1 -Page 1.2 and click on Page 1.2.1, I can
change the background color (for example) of node 1.2.1 to show the
user that he/she is currently on Page 1.2.1. But what I really want to
do is highlight the entire path (i.e. change the background color of
nodes Page 1, Page 1.2 and Page 1.2.1). Is that possible and if so, how
do I do that?

Brgds / Niklas

Nov 1 '06 #2
Thanks for the quick reply!
Do you know if there are any commercial products that would allow me to
highlight the entire path?

Brgds/Niklas

Nov 1 '06 #3
Hi,

Niklas Uhlin wrote:
Do you know if there are any commercial products that would allow me to
highlight the entire path?
alternatively - why don't you use a sitemap-control at each page's
top-area? Not much work to do and as this is sort of a standard, everybody
would see the path without a menu being colored non-standard wise.

Cheers,
Olaf
--
My .02: www.Resources.IntuiDev.com
Nov 1 '06 #4

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

Similar topics

1
by: Macamba | last post by:
Hi all, I am currently developing a website for a voluntary organisation. It is my first step in website development. The dynamic menu I developed has some bugs, which I addressed in another...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
2
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at...
8
by: Dennis C. Drumm | last post by:
Is there a way to modify the standard context menu shown when someone right clicks in a windows text box and that would work for all open windows applications? The standard context menu for...
1
by: Anthony | last post by:
Below is a script I found at http://javascript.internet.com/ for a cascading menu. The script works great but there is one thing that I would like modified. BecauseI am just learning javascript,...
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.