Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Open link from Menu control in new window

Thread Tools

Open link from Menu control in new window

Posts: n/a

Is there a way to open a link on a Menu control in a new Window? In
my Intranet site, I have pages where my users use to do their work and
I also have links to outside resources. When the user clicks on one
of the links from the Menu, I want to open them in new windows instead
of the existing one. By doing that, the user can carry on their work
with the various pages and use outside resources as reference.

<siteMapNode title="Outside References" >
<siteMapNode url=""
title="Yahoo" />
<siteMapNode url=""
title="CNN" />

Reply With Quote
Mark S. Milley, MCAD (BinarySwitch)
Posts: n/a
When worse comes to worse, you can always manually add the attribute
using the attributes collection of the control on the control's
PreRender eventhandler.

i.e., (control).attributes.add("target", "_blank")

Good Luck,


Reply With Quote
Posts: n/a
instead of href="" you could put

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
How to open menu item link in new window Homer ASP .Net 2 09-12-2007 06:15 PM doesn't open new Window in Opera PC HUA Javascript 2 05-19-2004 02:29 AM
Need to open a new browser window, not a new window Gordon ASP General 3 04-16-2004 10:46 PM
Open link in new window and the window is small Freshman HTML 5 09-28-2003 04:41 PM
Click link in popup window and insert link text in a field of mother window BlueŽ Javascript 4 09-27-2003 05:18 PM