Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access to asp hyperlink problem

Status
Not open for further replies.

obaluba

Technical User
Sep 24, 2001
49
GB
Hi, I was wondering if anyone could help or advise me. I think this is just a small problem, but,

I have an access database with some text url's in it ie, When i run my asp code just on my testing site and move over the link it takes me to I'm completely baffled to why it does this!
also how do i get the page to open in its own window? is it by using the 'target="_blank"' but i am unsure of where to put it?

here is the snippet of the troublesome code!

Response.Write &quot;links : <a href=&quot;&quot;&quot; & rs(&quot;links&quot;) & &quot;&quot;&quot;>&quot; & rs(&quot;links&quot;) & &quot;</a><br>&quot;

any help would be greatly appreciated

thanks in advance
 
The link needs to have an http:// in it or it will assume it is relative link from the same directory the web page is from. If you add that to your anchor tag it should work fine.
-Tarwn ________________________________________________
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048
 
where do i put this in that statement?! 'target=&quot;_blank&quot;

I put the http in and that worked fine! thanks
 
Target is just another attribute, like href or name or id. Therefore you can place it in the tag like so:
Code:
<A href=&quot;[URL unfurl="true"]http://www.whatever.com&quot;[/URL] target=&quot;_blank&quot;>Click me</a>

You can also use target in form tags to direct the form to a specific window or frame.

-Tarwn ________________________________________________
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top