Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: double quotes

  1. #1
    Regular Coder
    Join Date
    Feb 2004
    Location
    Malaysia
    Posts
    175
    Thanks
    0
    Thanked 0 Times in 0 Posts

    double quotes

    i have a problem in double quotes and single quotes....here is the code:

    Code:
    response.Write "<br><table width=100% border=0 align=center>
      			<tr>
        			<td align=center class=row4>The Event had been successfully deleted.</td>
    	  		</tr>
    			</table>"
    i am getting this error from it:

    Error Type:
    Microsoft VBScript compilation (0x800A0409)
    Unterminated string constant
    /eventView.asp, line 333, column 60
    response.Write "<br><table width=100% border=0 align=center>
    whats the problem? i tried using single quote to bring out the 100% character but i think i still can't find the solution...pls pls help....thanks

    cheers
    Warm Regards,
    Mivec

  • #2
    New to the CF scene
    Join Date
    Aug 2005
    Location
    Charlotte, NC
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    String need to be terminated at the end of the line. You can get around this by doing the following...
    Code:
    response.write "ln1 text " _
    & "ln2 cont.. from ln1 text"

  • #3
    Regular Coder
    Join Date
    Aug 2002
    Location
    USA
    Posts
    478
    Thanks
    0
    Thanked 2 Times in 2 Posts
    And could perhaps change this:

    response.Write "<br><table width=100% border=0 align=center>

    To be this instead:

    response.Write "<br><table width=100% border=0 align=center>"
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips

  • #4
    New Coder
    Join Date
    Aug 2005
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Tip: to print double quotes in asp-code:

    <%
    response.Write "<br><table width=""100%"" border=""0"" align=""center"">"
    %>

    Its useful for javascript codes.


    cheers


  •  

    Posting Permissions

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