In VBScript, a double quote inside a quoted string is represented by doubling the quote character. You can also generate a quote with Chr(34).
Response.Write chr(34)
( Try different values of chr to display different characters to the screen )
" is the HTML entity for a quotation mark. Inside a VBScript string literal, the quote characters that delimit or appear inside that string still need valid VBScript quoting.
Response.Write """
Some time within a string we will have double quotes to print. Here to print one double quote we will escape it by one more double quote so two double quotes are to be used. Read this line.
Response.Write "Raju told ""ASP is a better scripting language"""
The above line will print
Raju told "ASP is a better scripting language"
Mark the use of two double quotes within the string to display single double quotes.
Response.Write "<tr><td>session(""userid"")</td><td>"
The output of the above is
session("userid")
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.