johnmemor
asked on
Escape character in ASP ?
I have a string :
This is a "PEN"
How do I assign that string in a ASP variable ?
This is a "PEN"
How do I assign that string in a ASP variable ?
varStr = "THis is a ""PEN""
without quotes
strvar="This is a PEN"
with quotes
strvar="This is a ""PEN"""
strvar="This is a PEN"
with quotes
strvar="This is a ""PEN"""
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hohoho, another one here:
varStr = "This is a " & chr(34) & "PEN" & chr(34)
varStr = "This is a " & chr(34) & "PEN" & chr(34)
<%
Option Explicit
Dim varStr
varStr = "This is a ""PEN"""
%>
Rick
Option Explicit
Dim varStr
varStr = "This is a ""PEN"""
%>
Rick