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

VS 2005 Menu Navigation Question

I'm working with 2005 Beta 2 and I'm sure this is a trivial question but for
the life of me I can't figure out.

I placed a menu navigation componet on my master page and defined the
navigation url for each menu item. I then created a new page and selected my
master page.

The menu control has a booled "Selected" property. As long as I don't set a
navigation url, the menu item selected is set to true and highlighted. If I
specify a navigation url (that is also using the same master page) then it
doesn't highlight. I hope that makes sense. My question is: how can I get
each menu item when clicked to be selected with the highlight?

Here is my url if you my explaination doesn't make sense:
http://www.festivalsreview.com/reviewshome.aspx
The "Write a review" menu item is the only item I have set with a navigation
url for now.
Click on "Write a review" The selected property isn't getting set.
Click on the other links it gets set.
Thanks in advance for any help.
Nov 19 '05 #1
2 1607
Just for kicks, remove Write A Review. Test the remaining selections.
Replace Write A Review as the last item in the menu as it would appear to be
when sorted anyway. Run and test.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"Sisnaz" <Si****@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
I'm working with 2005 Beta 2 and I'm sure this is a trivial question but
for
the life of me I can't figure out.

I placed a menu navigation componet on my master page and defined the
navigation url for each menu item. I then created a new page and selected
my
master page.

The menu control has a booled "Selected" property. As long as I don't set
a
navigation url, the menu item selected is set to true and highlighted. If
I
specify a navigation url (that is also using the same master page) then it
doesn't highlight. I hope that makes sense. My question is: how can I get
each menu item when clicked to be selected with the highlight?

Here is my url if you my explaination doesn't make sense:
http://www.festivalsreview.com/reviewshome.aspx
The "Write a review" menu item is the only item I have set with a
navigation
url for now.
Click on "Write a review" The selected property isn't getting set.
Click on the other links it gets set.
Thanks in advance for any help.

Nov 19 '05 #2
Well, I figured out a workaround. I'm sure it's not the right solution, but
at least it works. In each file that is using the master file I had to add
this line:
<%@ MasterType VirtualPath="~/reviewsPage.master" %>
This gave me exposure to the master's public methods.

I then could access the menu control via a public modifer by simply calling
this:
Me.Menu1.Items(item).Selected = True

If anybody has a better idea or method I would be very interested. Thanks.

"clintonG" wrote:
Just for kicks, remove Write A Review. Test the remaining selections.
Replace Write A Review as the last item in the menu as it would appear to be
when sorted anyway. Run and test.
<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"Sisnaz" <Si****@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
I'm working with 2005 Beta 2 and I'm sure this is a trivial question but
for
the life of me I can't figure out.

I placed a menu navigation componet on my master page and defined the
navigation url for each menu item. I then created a new page and selected
my
master page.

The menu control has a booled "Selected" property. As long as I don't set
a
navigation url, the menu item selected is set to true and highlighted. If
I
specify a navigation url (that is also using the same master page) then it
doesn't highlight. I hope that makes sense. My question is: how can I get
each menu item when clicked to be selected with the highlight?

Here is my url if you my explaination doesn't make sense:
http://www.festivalsreview.com/reviewshome.aspx
The "Write a review" menu item is the only item I have set with a
navigation
url for now.
Click on "Write a review" The selected property isn't getting set.
Click on the other links it gets set.
Thanks in advance for any help.


Nov 19 '05 #3

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

Similar topics

12
by: MP Multimedia | last post by:
Hello everyone, I need help. I'm using a hierarchical menu made in javascript. When I used it in a one frame page, it came out fine. But now I need to change my page to 3 frames: a top frame,...
10
by: Gernot Frisch | last post by:
Hi, I have found some menu functions. It works quite well, but how can I replace it with a simple <a href> if javascript is turned off? I reduced my code to:...
2
by: Brian | last post by:
Hello, I want to design some menus for websites with submenus. I'd like to learn the code myself and I was wondering a good place to pick up on some tips on how to design them. Also, is there...
2
by: Mark Preston | last post by:
Its perhaps a bit early to ask, since I'm still doing the page design and haven't got down to the coding yet, but I wonder if anyone can help with a bit of a question. To lay the groundwork, a...
4
by: Dacian | last post by:
Hi, I´m trying to place a javascript navigation menu inside a cell of a table in my page, the problem is that the constructor of the menu object has parameters for menu positioning and size and...
9
by: Jay | last post by:
I have an asp menu control with menu items navigateUrl set to come back to the same aspx page but with different values in a url token. this works, but it is causing all my asp controls to loose...
11
by: Rickie | last post by:
Dear fellow software engineers, Is the web menu in asp 2.0 essentielle a useless control ? How many people( including msdn itself) are using server menu controls? Its a menu which always...
1
by: Paul | last post by:
Below is the html and css. It works in Firefox but not IE. When you click on "Your Links", it should cause a new menu "system" to open up to the right of the "Your Links" with two menu options. ...
1
by: Dave | last post by:
Hello, I'm working on a new site and i'd like to have a navigation menu on it. Ideally i'm thinking: home first item second item etc obviously with different names. I could use echo to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
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,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
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,...

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.