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

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

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 '06 #1
0 1449

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

Similar topics

9
by: Mactash | last post by:
Folks, I have problem running simplest ASP.Net programs with IIS web server. As a test I just added some text box and dropdown list with Visual Studio but when I run this my page shows...
1
by: Neil Zanella | last post by:
Hello, I would like to ask a question pertaining to programmatic initialization of ASP web controls (as opposed to initialization via standalone attributes and other elements contained in the...
2
by: kentg | last post by:
How do I "build" the name of an ASP control in the VB Code behind? I would like to cycle through several comboboxes using a loop. (cboReport1, cboReport2, cboReport3, etc.) ie. in MS-Access I...
2
by: parm | last post by:
How do I highlight text in my first (tabindex = 1) asp control (eg: textbox) on the webform on page load. If I try to set focus using javascript then I get script error "Cannot move focus to...
3
by: BlueSky | last post by:
Hi All, Is there an equivalent html control or asp control in .NET that does the following - <ul> <li>list item1</li> <li>list item2</li> <li>list item3</li> </ul> Thanks for any tip!
3
by: Frederik Borg | last post by:
Hi I would like to use script to access an asp control client side. The asp control and script is located in a content page. I use the control's ID to call it: <button...
4
by: drop | last post by:
Hi, I need to know if there is an ASP control in which I can easily paste some HTML code. Basically, we have a management application in which the client can enter it's product description....
1
by: activey | last post by:
Hi there, How can I change the value of an asp control by javascript, could you please tell me your perofessional opinion about this. Thanks,
2
by: alexandis | last post by:
I have menu bound to sitemap file. This is a piece of code <asp:menu ... > <StaticItemTemplate> <%# ((MenuItem)Container.DataItem).Selected ? : %> </StaticItemTemplate> </asp:menu> I check...
0
by: =?Utf-8?B?SmFu?= | last post by:
There MUST be a simple solution for this! Every windows application shows some extra information in the status bar for the selected menu entry when the user browses around the application menu. ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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,...
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.