CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 8/11/2006 4:56:14 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 34 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
CoolMama
Asp.Net User
Open URL in new window8/11/2006 4:56:14 PM

0/0

I'm creating an intranet with an XmlSiteMapProvider. Some of the URLs are external links that need to open in a new window because people here aren't computer savvy and they wouldn't know how to do it themselves. But the standard target="_blank" doesn't seem to work. What does?

<

siteMapNode url="" title="Education Services" description="">

   <

siteMapNode url="education/calendar.pdf" target="_blank" title="Education Calendar" description="Education Calendar" />

   <

siteMapNode url="education/inserviceReq.aspx" title="Request an In-Service" description="Info about requesting an In-service" />

   <

siteMapNode url="education/calendarForm.pdf" target="_blank" title="Calendar Submission" description="Form to submit events to Education Calendar" />

</siteMapNode>
Dawn
http://www.dawningdesigns.net
LudovicoVan
Asp.Net User
Re: Open URL in new window8/11/2006 5:09:31 PM

0/0

Hello, i guess adding an attribute to a siteMapNode doesn't imply any usage upon rendering. It's up to your code to retrieve that attribute and use it as needed...

Feel free to go into more details.

-LV


Julio P. Di Egidio
Software Analyst / Programmer
http://julio.diegidio.name

(Peace X Love] = [++1)
CoolMama
Asp.Net User
Re: Open URL in new window8/11/2006 5:23:38 PM

0/0

So I need to create some kind of method that attaches target="_blank" to certain nodes? How?
Dawn
http://www.dawningdesigns.net
LudovicoVan
Asp.Net User
Re: Open URL in new window8/11/2006 5:46:48 PM

0/0

CoolMama:
So I need to create some kind of method that attaches target="_blank" to certain nodes? How?

Well, it depends on how you are "consuming" the site map. How are you generating the links? Can you show some code?

-LV


Julio P. Di Egidio
Software Analyst / Programmer
http://julio.diegidio.name

(Peace X Love] = [++1)
CoolMama
Asp.Net User
Re: Open URL in new window8/11/2006 7:06:46 PM

0/0

In the HTML:

<

asp:SiteMapDataSource ID="siteData" runat="server" />

<asp:TreeView ID="treeNav" runat="server" DataSourceID="siteData" LineImagesFolder="~/TreeLineImages"

ShowLines="True" ExpandDepth="1">

<NodeStyle CssClass="basicNode" />

</asp:TreeView>
Dawn
http://www.dawningdesigns.net
LudovicoVan
Asp.Net User
Re: Open URL in new window8/11/2006 8:12:59 PM

0/0

Sorry, i've never used a TreeView up to now. By reading documentation, i guess you need the TreeNodeBinding.TargetField property. Here is the relevant links:

http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.treenodebinding.targetfield.aspx
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.treenodebinding.aspx

Hope this can be a starting point. -LV


Julio P. Di Egidio
Software Analyst / Programmer
http://julio.diegidio.name

(Peace X Love] = [++1)
6 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
The Book of JavaScript: A Practical Guide to Interactive Web Pages Authors: Thau, Pages: 490, Published: 2007
Creating Web Pages All-in-One Desk Reference For Dummies Authors: Richard Wagner, Richard Mansfield, Emily A Vander Veer, Pages: 672, Published: 2007
Dreamweaver 4 for Windows and Macintosh: Visual Quickstart Guide Authors: J. Tarin Towers, Pages: 618, Published: 2001
Dynamic HTML: The Definitive Reference Authors: Danny Goodman, Safari Tech Books Online, Pages: 1401, Published: 2002
QuickTime for the Web: For Windows and Macintosh Authors: Apple Computer, Inc, Steven Gulie, Pages: 825, Published: 2004
Ajax: The Definitive Guide Authors: Anthony Holdener, Anthony T. Holdener, III, Pages: 980, Published: 2008
JavaScript & DHTML Cookbook Authors: Danny Goodman, Pages: 582, Published: 2007
Flash 8 Cookbook Authors: Joey Lott, Jeffrey Bardzell, Pages: 510, Published: 2006
JavaScript: A Beginner's Guide Authors: John Pollock, Pages: 550, Published: 2004
Google: The Missing Manual Authors: Sarah Milstein, J. D. Biersdorfer, Rael Dornfest, Matthew MacDonald, Pages: 446, Published: 2005

Web:
HTML Open Link in New Window As the above example demonstrates, to open a link in a new window, you simply add target="_blank" to the anchor tag. Everything else stays as a normal link. ...
Open a new window with the URL I am using the Frame Based Window menu and it works perfect only question is how can I get a url to open a new window rather than in the ...
Working with Windows: Opening Windows When you open a new window with a simple link or form, you don't have any control ... But the second statement then replaces the URL of the new window with ...
HTML Links Text to be displayed ... Open a link in a new browser window This example demonstrates how to link to another page by opening a new window ...
New-Window Links in a Standards-Compliant World [HTML & XHTML ... Mar 4, 2003 ... But before we dive into the JavaScript code necessary to open a link in a new browser window, we still have a fundamental problem to solve. ...
Opening a New Browser Window How make a link open in a new browser window. ... Your browser will open a new window with my reciprocal links page in it (some newer browsers may open a ...
Tips 'n' Tutorials news article: New tip: open link in new window New tip: open link in new window. 2004-06-17. I've added a new tip explaining how to open a link in a new window using HTML. ...
open Method (window) Opens a new window and loads the document specified by a given URL. ... This example uses the open method to create a new window that contains Sample.htm. ...
Open link in a new window.. Or an even easier version would be that you add target=_blank to the URL, which will open a new window as well. ...
Forum redirect link to url should open new window - vBulletin ... There should be an option in this feature to allow us to have the url we redirect them to, open in a new window. Since most will be using this for ...

Videos:
quickest curcuit in a Gyroplane autogyro MTO-Sport prototype flies the quickest laps at the SkyRanch, Australia
Transylvania Trailer of the last Tony Gatlif's movie, the magnificent "Transylvania"
Despotism: 1946 educational film A film by Encyclopedia Britannica from 1946. It asks viewers to gauge where their communities lie on the scale of democracy vs. despotism, and point...
Guitar Music Theory Lesson "Black Magic Woman" Santana Pentatonic & Major Scale Learn guitar theory on the fretboard with this free lesson. Covers topics including chords, chord progressions, D minor pentatonic and D minor (F maj...
Mika - Popworld Interview MikaFanclub.com bring you popworld and the interview they had with Mika at London Zoo :)
Powerstrings - Volu-men no video, just the song.
DI-RECT - I just can't stand DI-RECT's latest video, "I just can't stand" from the album DI-RECT.
Gjallarhorn - Suvetar Great song from this finnish band.
New York, New York (Theme song, 1977) Classic final scene of the 1977's musical by Martin Scorsese.
NeverShoutNever - [New] BigCityDreams request :] http://www.myspace.com/nevershoutnever You say we're both little people and you like it that way But in time I'm gunna put this body to ...




Search This Site:










load xml file and read xml file

master pages - contentplaceholder control size in visual studio 2005 design mode

loginview - how do i access controls from javascript?

context menu in treeview

multiple sitemap file issue

prevent postback on expanding/collapsing treeviw

accessing properties in master pages when defined at run time

accessing masterpage controls from content

how do i properly use the menu control with xml?

themes are not working properly

space abov

page dependency matrix + objects

menu root node problem

when will the treeview get updated. selected node

menu items and site map

confused about linking custom sitemapprovider into site map hierarchy.

expand

asp templates

dynamically changing themes for different users

passing value via menuitem

asp.net menu

another menu/sitemap question

sitemapresolve event not firing on iis

a very simple vertical list of links using sitemap

can masterpage find out which page is loaded in a content place holder

treeview not refreshing on autopostback

templates for asp.net with support for masterpages?

multiple forms

query regarding menu control in master page

using javascript in master pages and content pages

  Privacy | Contact Us
All Times Are GMT