How do I set selected Menu item in a asp:menu control?

Discussion in 'ASP .Net' started by goran.strand@gmail.com, Dec 22, 2006.

  1. Guest

    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?
     
    , Dec 22, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Eirik Eldorsen
    Replies:
    0
    Views:
    3,327
    Eirik Eldorsen
    Jul 28, 2006
  2. Wayne Erfling
    Replies:
    0
    Views:
    461
    Wayne Erfling
    Oct 13, 2006
  3. Iain
    Replies:
    3
    Views:
    939
  4. RJN
    Replies:
    0
    Views:
    2,120
  5. mldardy
    Replies:
    0
    Views:
    972
    mldardy
    Sep 28, 2010
Loading...

Share This Page