Escape character in ASP ?

I have a string :

 This is a "PEN"

How do I assign that string in a ASP variable ?
johnmemorAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
mgfranzConnect With a Mentor Commented:
Oops, varStr = "This is a ""PEN"""

Your'e gunna get a bunch of replies...
0
 
mgfranzCommented:
varStr = "THis is a ""PEN""
0
 
ckanetaCommented:
without quotes
  strvar="This is a PEN"
with quotes
  strvar="This is a ""PEN"""
0
 
daniel_cCommented:
Hohoho, another one here:

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

Rick
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.