Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2003
    Location
    England
    Posts
    2

    Question Unanswered: Turn returned field into hyperlink?

    How do i turn turn a returned field into a hyperlink. Im trying to create a simple content manager, and want to use recovered fields as links to the documents. Im stuck with the syntax inserting the field.value into the <a href=" ..field.value ..." > field </a>
    Any help would be appreciated.

    thanks

  2. #2
    Join Date
    Feb 2003
    Location
    @ home
    Posts
    163

    Re: Turn returned field into hyperlink?

    It's simple, just put your variable value inside the href section.
    Something like this:

    <a href="<%=MyVar%>"> field </a>


    ____________________

    Paulo Gonçalves

  3. #3
    Join Date
    Feb 2003
    Location
    England
    Posts
    2

    Re: Turn returned field into hyperlink?

    Originally posted by pal19
    It's simple, just put your variable value inside the href section.
    Something like this:

    <a href="<%=MyVar%>"> field </a>


    ____________________

    Paulo Gonçalves
    Thanks Paulo, ive looked at my original code <%=rs("Filename")%> , and modified it as
    <a href="<%=rs("Filename")%>">"<%=rs("Filename")%>"</a>.

    That seems to have sorted it out, i think it's all the nesting that stopped it.

Posting Permissions

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