Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How do I set selected Menu item in a asp:menu control?

Thread Tools

How do I set selected Menu item in a asp:menu control?
Posts: n/a
In my Default.aspx I have a Menu control
(System.Web.UI.WebControls.Menu) with some static menu items. When I
click on a menu item, the navigate URL contains another aspx page that
I load in an IFRAME, like this:

<asp:MenuItem Text="GALLERY" Value="Gallery"
NavigateUrl="~/gallery/Gallery.aspx" Target="mainFrame"></asp:MenuItem>

The problem with this is that the Menu Item GALLERY will not show as
selected since there is no postback to the page Default.aspx, is there
a way to solve this? I want to load my content in an IFRAME since I
don't like when the header (containing my menu) reloads and dissapear
for a short while before it's reloaded.

Any sugestions?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
need help to fill textboxes from a selected item in datagrid-selected index changed. mldardy ASP .Net 0 09-28-2010 02:59 PM
DropDownList 2 always returns Selected = 0 for all items - even selected item Iain ASP .Net 3 12-11-2006 11:07 AM
In Menu Control's item collection, setting .Selected=false doesn't work if children present Wayne Erfling ASP .Net 0 10-13-2006 01:24 PM
Menu control - problem with setting selected item Eirik Eldorsen ASP .Net 0 07-28-2006 12:06 PM