473,406 Members | 2,208 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,406 software developers and data experts.

A question about the Menu control in ASP.NET...

Is it possible to make an item's entire field in the menu selectable?

I'm using the menu control bound to web.sitemap, and only the text part
of any given menu item acts as a link. I'd like to be able to make it
where you can click anywhere, even next to the word (in the item's
field on the menu of course) and still have it take you to where you
need to go, as opposed to only being able to click on the text.

Hardcoding the menu with images and such isn't really an option as the
menu has to be dynamic and easily edited from within the sitemap, so
I'm hoping it's a setting or something else I'm missing.

Dec 18 '06 #1
3 864
I haven't seen any such functionality but using the CSS Control Adapters may
allow a solution.

--
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=-...8&z=17&l=0&m=h

"Bryan" <bo*****@gordongrid.comwrote in message
news:11**********************@f1g2000cwa.googlegro ups.com...
Is it possible to make an item's entire field in the menu selectable?

I'm using the menu control bound to web.sitemap, and only the text part
of any given menu item acts as a link. I'd like to be able to make it
where you can click anywhere, even next to the word (in the item's
field on the menu of course) and still have it take you to where you
need to go, as opposed to only being able to click on the text.

Hardcoding the menu with images and such isn't really an option as the
menu has to be dynamic and easily edited from within the sitemap, so
I'm hoping it's a setting or something else I'm missing.

Dec 18 '06 #2
Thank you!

A quick search on Google for '+"css control adapters" +"menu control"'
got me exactly what I needed... I just had to look at what they did in
the CSS code and it works like a champ.

For anyone else that may be curious about the fix, here's the code I
used:

..mainMenu
{
display: block;
}
With that, I made mainMenu the class for the applicable parts of the
menu, and it works great. Of course any other styles you want to use
can be set here too, but the above makes the whole menu field
selectable.

Thanks again!

Dec 18 '06 #3
Thanks for coming back with results Bryan. Your a classy guy.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=-...8&z=17&l=0&m=h
"Bryan" <bo*****@gordongrid.comwrote in message
news:11**********************@t46g2000cwa.googlegr oups.com...
Thank you!

A quick search on Google for '+"css control adapters" +"menu control"'
got me exactly what I needed... I just had to look at what they did in
the CSS code and it works like a champ.

For anyone else that may be curious about the fix, here's the code I
used:

.mainMenu
{
display: block;
}
With that, I made mainMenu the class for the applicable parts of the
menu, and it works great. Of course any other styles you want to use
can be set here too, but the above makes the whole menu field
selectable.

Thanks again!

Dec 19 '06 #4

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

Similar topics

5
by: Brad Isaacs | last post by:
Good morning friends, I am working with ASP.NET 2.0 -- VB code behind I have created tabbed pages using the Menu control with the Multiview control. Using the menu control to display the...
5
by: AG | last post by:
I realize that the obvious suggestion would be malware, but my definitions are up to date and I have already scanned for it. I have also tried disabling all IE add-ons. I just rebuilt and...
10
by: =?Utf-8?B?RGFuaQ==?= | last post by:
Hi, Trying to create a master page that holds a menu, and the menu switches between pages in the site. 2 problem arrosed: a. When I navigate from page to page (all AJAX Web Forms, with the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
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,...
0
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...

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.