Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quotes in ASP

Status
Not open for further replies.

frosty7700

Programmer
Aug 10, 2001
95
US
I am trying to write a text file dynamically in an ASP page. So far so good, but I can't figure out how to handle quotes (") that I want to insert into the text file. Everytime I try the browser chokes. This is basically the classic "quotes within quotes" dilemma, but none of the remedies I might use in other languages (e.g. two quotes in a row) are working. Any ideas? I know it's a novice problem, but I've honestly never had to deal with it in ASP.
 


frosty7700,

Hope this helps.

fengshui1998


response.write "Here is a double quote - " & chr(34)
produces:

Here is a double quote - "


response.write "Here is a ""double"" quote."
produces:

Here is a "double" quote.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top