473,799 Members | 3,025 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET 2.0 menu question

Hi there,

I use a menu control that is bound to a sitemap to display menu items,
no problems there.

I now have one menu item that needs to open an url in a new window,
and I have to dynamically add some querystring value to that URL. So I
need the menu item to do something like

window.open("ht tp://newurl/page.aspx?value =5");

and the value of the querystring depends on the user so I have to be
able to set this value dynamically when the page is loaded...

I assume that I can't use the sitemap to specify such menu item? Is
there another solution?

Thanks!

Nov 5 '07 #1
1 1088
On 5 nov, 09:37, lstuyc...@gmail .com wrote:
Hi there,

I use a menu control that is bound to a sitemap to display menu items,
no problems there.

I now have one menu item that needs to open an url in a new window,
and I have to dynamically add some querystring value to that URL. So I
need the menu item to do something like

window.open("ht tp://newurl/page.aspx?value =5");

and the value of the querystring depends on the user so I have to be
able to set this value dynamically when the page is loaded...

I assume that I can't use the sitemap to specify such menu item? Is
there another solution?

Thanks!
Found a workaround.. in the MenuItemDataBou nd event I modify the
NavigateUrl of the menu item.

Nov 5 '07 #2

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

Similar topics

2
3280
by: zapazap | last post by:
Dear Snake Charming Gurus, (Was: http://mail.python.org/pipermail/python-list/2004-January/204454.html) First, a thank you to Tim Golden, Thomas Heller, and Mark Hammond for your earlier help with this problem. I am uncertain about what etiquette calls for, but more on that later. My Objective: I am trying to control the _VMWare Desktop_ application
1
3636
by: Marc | last post by:
Hi I have a system wide hook that detects menus with class(#32768). Is it possible to detect if a menu is a sub-menu of another? I currently have the handle(HWND) to the menu I am interested in but cannot seem to find a way to Identify if this menu has a parent menu.
4
2135
by: Chris45 | last post by:
Hi , Trying to get a menu working for sometime now have wasted money on stupid software etc.Now have been trying out a freebee from www.dynamicdrive.com, but have one or two question. It's properly better if I was to show you it so have uploaded it to with a couple of question. http://teaup.port5.com/test/ This is where my problem starts how do I make the menu veawable over this frame ? Then the next problem is how would one make the...
12
3413
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, a left frame and a right frame. The menu is on the top frame and when hovering the categories, the sections appear under the left and right frame. How do I solve that problem? (I use Dreamweaver.) Thanks for all your answers.
2
4687
by: Rob McLennan - ZETLAND | last post by:
Hi, I have set up an external stylesheet, named "print.css", to format the style of all pages printed from my company's website. I've been previewing my changes to the stylesheet by doing File\Print Preview in IE6 and noticed that occasionally the leftmost button of the javascript menu (CoolMenus Version 3.02) on our website is printed. (I have wrapped the javascript that generates this menu in a DIV so that it is concealed from...
2
1728
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 quick description of the template design for the pages:- 1. There will be a body section of the page consisting of a set of <div> layers. The top level layers will all have the same CSS class to ensure a common design look. 2. At the side or top...
4
14190
by: Aaron Queenan | last post by:
How can I use the designer to add a context menu to a class which inherits from a control, e.g. treeview, without adding the context menu to a form? For example, to add a context menu with "Select All" and "Clear Selection" to a checked list box? Thanks, Aaron Queenan.
2
1628
by: Sisnaz | last post by:
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...
10
2989
by: sk | last post by:
Hi everyone, I'm kind of new to C programming, so I thought that a newsgroup would be the best place to ask a question about this. I'm trying to write a small program that displays a menu and has the user input a value(int). I'm only using getchar and printf to make things simple. I have the menu printing part down pretty well, but I'm getting an error where the entire menu will print n+1 number of times when you input a value with...
1
14336
by: Preeti | last post by:
Hi all I am a fresher and have been given a requirement in VB.net I have to make an application in VB.net which will run as a system tray icon and will add one or two items in the default windows right clink context menu. on clicking on that menu item the application should write a signature on the current cursor position
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10268
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10031
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9079
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4146
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2941
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.