Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Location
    India
    Posts
    56

    Unanswered: 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

  2. #2
    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 11:36.

  3. #3
    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.

  4. #4
    Join Date
    Dec 2003
    Posts
    454
    <%
    Dim myLink
    myLink = "linktext.html"
    %>

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •