Link to home
Start Free TrialLog in
Avatar of johnmemor
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 ?
Avatar of Mark Franz
Mark Franz
Flag of United States of America image

varStr = "THis is a ""PEN""
Avatar of ckaneta
ckaneta

without quotes
  strvar="This is a PEN"
with quotes
  strvar="This is a ""PEN"""
ASKER CERTIFIED SOLUTION
Avatar of Mark Franz
Mark Franz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hohoho, another one here:

varStr = "This is a " & chr(34) & "PEN" & chr(34)
<%
Option Explicit
Dim varStr
varStr = "This is a ""PEN"""
%>

Rick