stupid quotation marks! Response.Write "a href=...... ? how does it work...

Results 1 to 5 of 5

Thread: stupid quotation marks! Response.Write "a href=...... ? how does it work...

  1. #1
    Fabio Santschi Guest

    Default stupid quotation marks! Response.Write "a href=...... ? how does it work...

    How can I do a Response.Write with quotation marks like this...<BR>I wanna do a &#060;a href="file.asp"&#062;Click here!&#060;/a&#062;<BR>Response.Write "a href=" & &#039"&#039 & filename & &#039"&#039 & "&#062;click here&#060;/a&#062;" doesn&#039t work...<BR>HELP!

  2. #2
    Join Date
    Dec 1969
    Posts
    73

    Default RE: stupid quotation marks! Response.Write

    &#060;a href="&#060;% Response.Write(&#039" & Filename.asp & "&#039)%&#062;"&#062;Click here&#060;/a&#062;<BR><BR>

  3. #3
    Ian Stallings Guest

    Default RE: stupid quotation marks! Response.Write

    A few ways you can do this:<BR><BR>Response.Write("&#060;A href=&#039file.asp&#039&#062;Click Here!&#060;/a&#062;")<BR>Response.Write("&#060;a href=""file.asp""&#062;Click Here!&#060;/a&#062;")<BR><BR><BR>hope this helps :)

  4. #4
    Nathan Pond Guest

    Default RE: stupid quotation marks! Response.Write

    heh, although both previous replies were valid workarounds to your problem, here is the answer in how to write out a double quote:<BR><BR>use vbScript&#039s Chr() function, along with the ascii value of the double quote, which is 34. Chr(44) will evaluate to "<BR><BR>Response.Write "a href=" & Chr(34) & filename & Chr(34) & "&#062;click here&#060;/a&#062;" <BR><BR>Let me know if you need any more help.<BR><BR>Nathan <BR><BR>


  5. #5
    Join Date
    Dec 1969
    Posts
    866

    Default RE: stupid quotation marks! Response.Write

    Double your quotation marks - whenever HTML would require one set of double quotes " , use two "". That generally works.

Posting Permissions

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