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!

Need help with concatenating "a href"

Status
Not open for further replies.

csiwa28

Programmer
Apr 12, 2001
177
I'm trying to write a hyperlink, but I keep getting syntax errors.

Response.write &quot;<a class href=&quot;&quot; & News.Link & &quot;&quot; & &quot;target=&quot; &quot; & &quot; &quot;_blank&quot; &quot; & &quot;>&quot; & &quot;All News</a>&quot;

News.Link is pulling data from a field.
 
Hi,

This should work.

At least it did with me. (I replaced news.link with something else)

Response.write &quot;<a class href='&quot; & News.Link & &quot;'&quot; & &quot;target='_blank'>All News</a>&quot;

Hope it does :p

Gtz,

Kristof
 
Try this:

Response.write &quot;<a class='' href='&quot; & News.Link & _
&quot; target='_blank'>All News</a>&quot;

When I trouble shoot this type of error it is always helpful to look at the source of the brower output (view source). That will help eliminate missing spaces and quotes.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top