Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 09-24-2007, 09:44 PM respose.write a url ~solved
Extreme Talker

Posts: 176
Trades: 0
Code:
Response.Write ("<a target=""blank"" href=""")
Response.Write rs("link")
Response.Write ("""><img border=""0"" src=""")
Response.Write rs("image")
Response.Write ("""></a>")
*this is drawing information from a database

link = a link to a website
image = the url of an image

I just can seem to get this to work. This is what it looks like if i do that:
Code:
<a target="blank" href="#http://www.pixeljoint.com/default.asp#"><img border="0" src="#http://pixeljoint.com/pixels/images/pixeljoint6.gif#"></a>
What's with the pound signs?!

Last edited by Skeddles; 09-25-2007 at 08:25 PM..
Skeddles is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-24-2007, 09:51 PM Re: respose.write a url
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Stored in an Access database? It uses funny denote marks, like # around dates, and, apparently, hyperlinks. Either store the URLs in plain text format, or add some code to strip the # marks out. Like:

Response.Write ("href=" + Chr(34) + Replace(link, "#", "") + Chr(34))

The target attribute is _blank, not blank; that might become an issue later.

And Chr(34) returns a quote mark.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 09-24-2007, 10:11 PM Re: respose.write a url
Extreme Talker

Posts: 176
Trades: 0
Quote:
Originally Posted by ForrestCroce View Post
Stored in an Access database? It uses funny denote marks, like # around dates, and, apparently, hyperlinks. Either store the URLs in plain text format, or add some code to strip the # marks out. Like:

Response.Write ("href=" + Chr(34) + Replace(link, "#", "") + Chr(34))

The target attribute is _blank, not blank; that might become an issue later.

And Chr(34) returns a quote mark.
yessssss thank you thank you thank you thank you thank you!

I just had to change a setting in the database.
Skeddles is offline
Reply With Quote
View Public Profile
 
Old 09-25-2007, 02:14 AM Re: respose.write a url
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Skeddles, if you haven't figured it out (and I suspect you have), this happens when you make a field a hyperlink within Access.

Never use hyperlink for a field, unless the database is exclusively offline. You'll never get it to function the way you want it to.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 09-27-2007, 04:38 PM Re: respose.write a url
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Quote:
Originally Posted by ADAM Web Design View Post
You'll never get it to function the way you want it to.
Plus the whole point to using a database instead of a Excel file is once you've got your data stored, you can query it in new ways to learn things. If you store the URI as text instead of as a hyperlink which is a special field that Access uses to track different bits of data, you'll be able to do more with your data later.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 09-28-2007, 01:55 PM Re: respose.write a url
Skilled Talker

Posts: 97
Name: Ganesh
Trades: 0
Quote:
Originally Posted by Learning Newbie View Post
Plus the whole point to using a database instead of a Excel file is once you've got your data stored, you can query it in new ways to learn things. If you store the URI as text instead of as a hyperlink which is a special field that Access uses to track different bits of data, you'll be able to do more with your data later.

The is very true. If the data comes with #, use the replace command to remove the unwanted character.

In the long term Hyperlink Field could help you.
__________________
Gather. Search. Compare. Save on Hotel and Flight Prices @
Please login or register to view this content. Registration is FREE
sri_gan is offline
Reply With Quote
View Public Profile
 
Old 10-07-2007, 06:42 AM Re: respose.write a url
Novice Talker

Posts: 7
Trades: 0
use ' to replace " in the ""
xuzheng is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to respose.write a url
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.24792 seconds with 12 queries