If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Hyper Link in Asp

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-04, 06:08
graceson graceson is offline
Registered User
 
Join Date: Mar 2004
Location: India
Posts: 56
Hyper Link in Asp

I would like to know how we can have a hyper link through ASP.Suppose if we want a link from a column of table which is created through the asp code.

ie, Response.Write "<td> <a href="linktext.html" Link test </a></td>"

What is the error in above written code.It wil be appretiate ,if any one can help me.


Thank you

Gson MAthew
Reply With Quote
  #2 (permalink)  
Old 05-13-04, 10:32
richy240 richy240 is offline
Registered User
 
Join Date: Sep 2003
Posts: 24
First off, a ">" in your "<A HREF..." might help...

You'll also want to double up on your quotes; like this:

Response.Write "<td> <a href=""linktext.html"">Link test</a></td>"

I know there is a special way to handle single quotes also, but I always just double up my double quotes.

Does this make any sense?

Last edited by richy240; 05-13-04 at 10:36.
Reply With Quote
  #3 (permalink)  
Old 05-13-04, 10:56
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Or

Response.Write "<td><a href='linktext.html'>Link test</a></td>"

Or

Response.Write "<td><a href=" & Chr(34) & "linktext.html" & Chr(34) & ">Link test</a></td>"

Chr(34) = "
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #4 (permalink)  
Old 05-13-04, 11:19
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
<%
Dim myLink
myLink = "linktext.html"
%>

<td><a href="<%= myLink %>">Link Test</a></td>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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