Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2006
    Posts
    3

    Unanswered: Help with a hyperlink in asp

    Hi there i hope some on can help me i thought this would be straght forward
    but i just can't get this to work.

    in html you can do <a href="MyDoc.doc#Mybookmark">docTitle</a>
    and this will open the document and go to where the the bookmark is located with that document

    my problem is when i try and build a this link with asp it does not work

    Response.write("<a href="" & rs2("File") & "#" & rs2("bookmark") & """>" & rs("DocTitle") & "</a>")

    can anyone offer some help

    cheers

  2. #2
    Join Date
    Jan 2007
    Location
    on Earth, in Canada ...
    Posts
    1
    It looks to me like you are missing a double-quote
    Code:
    Response.write("<a href=""" & rs2("File") & "#" & rs2("bookmark") & """>" & rs("DocTitle") & "</a>")
                              ^

  3. #3
    Join Date
    Jul 2004
    Posts
    23
    I always use the single quote ... it makes life much easier

  4. #4
    Join Date
    Jul 2006
    Posts
    56
    Yeah, I'd use the single quotes too ...

    In JavaScript you may just use a backslash like

    var = "\"quote my friend here\"";


    Don't know if there's a way to do it in VBScript thou ...

    Sorry

Posting Permissions

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