By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,734 Members | 832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,734 IT Pros & Developers. It's quick & easy.

VS 2005 Menu Navigation Question

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.