Need Help Printing Quotation Marks

SphyNxXx

Member
Joined
Nov 14, 2006
Messages
7
Programming Experience
1-3
In a ASP.NET 2.0 app that Im writing, Im using the response.write() feature to write some ASP code to my page. However, inside of my string that will be written to the document, I need to have quotation marks.

Example

Response.Write("this="Hello"")

of course, when you have quotation marks within the quotes of a string, it will throw everything off....Ive tried using single quotes ( ' marks) but the function Im trying to do wont work with single quotes. Can anybody help me here! Thanks!
 
Response.Write("""VB.NET Rocks""")


So 2 sets of quotes would work...didn't know that. After I posted this, a coworker told me that using + chr(34) + would work too. Thanks for the help...unfortunately, this hasn't completely solved my issue, but that a whole different thing! I'll play around with it some more on Monday :cool:
 
Back
Top