Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Open link from Menu control in new window

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Homer - 03 Jul 2007 17:51 GMT
Hi,

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="http://www.yahoo.com"
                  title="Yahoo" />
     <siteMapNode url="http://www.cnn.com/"
                  title="CNN" />
Mark S. Milley, MCAD (BinarySwitch) - 03 Jul 2007 17:55 GMT
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,

-Mark
GroupReader - 03 Jul 2007 18:22 GMT
instead of href="http://www.google.com" you could put
href="javascript:window.open(.....);"

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.