473,785 Members | 2,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why isnt target="_blank" working????

<siteMapNode title="share price" description="Li nk to Netcall on the London
Stock Exchange" url="http://www.yahoo.co.uk " role="" target="_blank" />

Hi all

I'm trying to open the Yahoo web site in a new window using the above code in
my asp.net web.sitemap. I'm expecting the target="_blank" bit to make it do
this. but it isnt. Does anyone know why??

Thanks in advance.

--
Message posted via DotNetMonster.c om
http://www.dotnetmonster.com/Uwe/For...p-net/200604/1
Apr 10 '06 #1
5 3990
Not sure how this gets implemented, but if it uses client-side script
to open the window then maybe it's being prevented by a popup blocker?

Apr 10 '06 #2
Hey, thanks for replying but I wouldn't have thought it was that. The Yahoo
web site does load up but not in new window. It loads up in the current
window. No pop up messages are being displayed at all. I'm clueless to why
it doesnt work????

--
Message posted via DotNetMonster.c om
http://www.dotnetmonster.com/Uwe/For...p-net/200604/1
Apr 10 '06 #3
For a start I would check the HTML code used to open the window. My first
thought would be that this atttribute is just not used in the created HTML
code... (which control do you use, a menu ?)

--
Patrice

"dandrew22 via DotNetMonster.c om" <u2272@uwe> a écrit dans le message de
news: 5e916b96b7b64@u we...
Hey, thanks for replying but I wouldn't have thought it was that. The
Yahoo
web site does load up but not in new window. It loads up in the current
window. No pop up messages are being displayed at all. I'm clueless to
why
it doesnt work????

--
Message posted via DotNetMonster.c om
http://www.dotnetmonster.com/Uwe/For...p-net/200604/1

Apr 10 '06 #4
Hey Patrice, thanks for replying.
I have an asp.net menu control. Each heading in this control , when clicked,
will load a new page. This new page will load in the current window (so
never is a new window opened). Only one heading on the menu will load a new
page and this is the sub-heading is 'share price' the following is the
sitemap code for this:
<siteMapNode title="share price" description="Li nk to Netcall on the London
Stock Exchange" url="http://www.yahoo.co.uk " role="" target="_blank" />

The other headings dont have the target="_blank" bit as they will load in the
same window. But the above should load in a new window. I dont have any
other code elsewhere for this. The sitemap has all the navigation code I've
been using. If I need to have code elsewhere to open a new window then what
will I need???

Many thanks in advance.

--
Message posted via DotNetMonster.c om
http://www.dotnetmonster.com/Uwe/For...p-net/200604/1
Apr 10 '06 #5
And have you tried to check the HTML code as suggested ? My guess is that
this atttribute is not used by the menu control when generating the HTML
code.

From
http://msdn2.microsoft.com/en-US/lib...rs(VS.80).aspx,
it looks that the SiteMapNode doesn't have the "target" attribute.
For now it would be a custom attribute that is not used by the menu control.

Once checked this is the case, you could inherit from the menu control to
add this capability. (or perhaps use a js function that uses window.open in
your site map).

--
Patrice

"Jon via DotNetMonster.c om" <u2272@uwe> a écrit dans le message de news:
5e91e3de234ec@u we...
Hey Patrice, thanks for replying.
I have an asp.net menu control. Each heading in this control , when
clicked,
will load a new page. This new page will load in the current window (so
never is a new window opened). Only one heading on the menu will load a
new
page and this is the sub-heading is 'share price' the following is the
sitemap code for this:
<siteMapNode title="share price" description="Li nk to Netcall on the
London
Stock Exchange" url="http://www.yahoo.co.uk " role="" target="_blank"
/>

The other headings dont have the target="_blank" bit as they will load in
the
same window. But the above should load in a new window. I dont have any
other code elsewhere for this. The sitemap has all the navigation code
I've
been using. If I need to have code elsewhere to open a new window then
what
will I need???

Many thanks in advance.

--
Message posted via DotNetMonster.c om
http://www.dotnetmonster.com/Uwe/For...p-net/200604/1

Apr 10 '06 #6

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

Similar topics

9
7687
by: Sugapablo | last post by:
I admit, I'm terrible creating reg ex's. I'm trying to create a preg_replace that would remove from a <a href> tag that would replace the target attribute regardless of what the value might be. Any ideas? --
12
3320
by: Romain | last post by:
Hi, I've used an excellent way to make target="_blank" links that still validate while using HTML 4.01 Transitional doctypes in the past. I learned the trick from : http://www.sitepoint.com/article/1041 Basically, instead of typing : <a href="yourlink.html" target="_blank" alt="">The link</a>
1
1967
by: Nick Messick | last post by:
I'm going through some old code and have found this a number of places. Seems kind of strange. Is there any reason why someone would do this?
16
3619
by: St. Rechsteiner | last post by:
Hi How i made the same effect in xHTML like the - target="_blank" - Tag in HTML 4.01? I will use it with xHTML and CSS ... but the validator say's to me, that this tag wasn't valid for xHTML! ... Why? Is there no "same effect"-Tag in xHTML? Thx for answers!
6
77511
by: Tony Marston | last post by:
The code <a href="..." target="_blank">...</a> will not validate as XHTML STRICT because of the 'target' tag, so how do I achieve the same result by moving it to a CSS file? I cannot find anything which allows me to specify 'target=' on an anchor tag. -- Tony Marston http://www.tonymarston.net
2
2845
by: Matt | last post by:
In the following code, page1.asp is inside the frame of main.html. When the user click submit button in page1.asp, it will submit the form and open a new window called page2.asp. When the user clicks submit button on page2.asp, I expected to open a new window called page3.asp. Unfortunately, it just open page3.asp in the same window as page2.asp, and now page2.asp is gone. However, if I just open page1.asp, and begins from there, it is...
10
60723
by: Dieter Salath? | last post by:
Hi, in our webpage, a user could open a windows explorer to his temp directory with a simple link and usage of the file protocol: <a href="file://C:\temp" target="_blank">C:\temp</a> This worked very well a long time, but now it does not work anymore. We use IE6 and Microsoft Windows XP Professional 2002 SP2. I guess it has something to do with new IE security features. Does
8
3860
by: msnews.microsoft.com | last post by:
I want to redirect the user to a url outside of our website but I want it to preserve our application's window by opening a new window. We have a datagrid that has five hyperlink columns containing links to external sites. The hyperlink columns have the target="_blank" attribute so they preserve the existing window. This works OK except that the NavigateURL's are quite long due to the size of the query string and this makes the page slow. ...
0
9647
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
10161
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
9958
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
8986
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
6743
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();...
0
5390
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2890
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.