using the ' char

Results 1 to 4 of 4

Thread: using the ' char

  1. #1
    witchy Guest

    Default using the ' char

    Hi<BR>How do i go about writing the following using response.write method:<BR>"James&#039s Place"<BR>As I&#039ve tried all sorts of conatations and can&#039t get it right. Please help...<BR><BR>Also if I wanted to write the string:<BR>so i said "blah"<BR>how would i do this

  2. #2
    Join Date
    Dec 1969

    Default RE: using the ' char

    If you are using VBScript, use the following:-<BR><BR>Response.Write "James" & Chr(39) & "s Place"<BR><BR>To do the string, use<BR><BR>Response.Write "so I said " & Chr(34) & "blah" & Chr(34)<BR><BR>Chr(number) writes the Ascii character for the number given.<BR><BR>Andy

  3. #3
    Join Date
    Dec 1969

    Default <%response.write "james's palace"%>

    &#060;%response.write "james&#039s palace"%&#062;<BR>works perfect.

  4. #4
    Join Date
    Dec 1969

    Default much simpler

    Why go to all that trouble?<BR><BR>&nbsp;&nbsp;&nbsp;response.write "Jame&#039s Place"<BR><BR>works just fine. And for your second example:<BR><BR>&nbsp;&nbsp;&nbsp;response.write "so I said ""blah"""

Posting Permissions

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