Print Page | Close Window

open and closing quotes?!

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=3879
Printed Date: 30 March 2026 at 3:58pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: open and closing quotes?!
Posted By: Lucent
Subject: open and closing quotes?!
Date Posted: 27 June 2003 at 1:19pm
Can anyone tell me what is the differences between open and closing quotes or the standard double quote?  Thank you in advance!! 



Replies:
Posted By: Gullanian
Date Posted: 27 June 2003 at 1:31pm
Well, double shows up as a single in a response.write, a single would close


Posted By: Lucent
Date Posted: 27 June 2003 at 1:40pm
can you give me an example line of each? thank you!


Posted By: Gullanian
Date Posted: 27 June 2003 at 1:52pm

well:

response.write("The man said; "hello how are you" and I ate pie")

would return an error

response.write("The man said; ""hello how are you"" and I ate pie")

would return:

The main said; "hello how are you" and I ate pie



Posted By: Scotty32
Date Posted: 27 June 2003 at 1:54pm

well in ASP if you do

<% response.write("hello world")%>

you cant use quotes in it or it will end the "response.write"

so you will have to use

<% response.write("hello ""world""")%>

the double quotes will cancel it out, so it will show

this would end up writing...

hello "world"

i think the person above was talking about the the ' thing

you could use that would look like

<% response.write("hello 'world'")%>

hope this helps



Posted By: pmormr
Date Posted: 27 June 2003 at 4:11pm

you should be able to use an apostrophe without it returning an error.



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: ljamal
Date Posted: 27 June 2003 at 6:29pm
Originally posted by pmormr pmormr wrote:

you should be able to use an apostrophe without it returning an error.



Unless you are passing the string to a SQL statement and then you will have to replace all instances of the single quote (') with to single quotes ('').

NOTE those are apostrophes (') and not quotes ("). I think a lot of the confusion is in the use of single and double quote. To most, this (") could be a single quote, and this a double quote (""), but we use the apostrophe as a single quote (') and the normal quote (") as double quote.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net