Solved

Escape character in ASP ?

Posted on 2001-06-08
5
210 Views
Last Modified: 2012-05-04
I have a string :

 This is a "PEN"

How do I assign that string in a ASP variable ?
0
Comment
Question by:johnmemor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 18

Expert Comment

by:mgfranz
ID: 6169412
varStr = "THis is a ""PEN""
0
 
LVL 3

Expert Comment

by:ckaneta
ID: 6169415
without quotes
  strvar="This is a PEN"
with quotes
  strvar="This is a ""PEN"""
0
 
LVL 18

Accepted Solution

by:
mgfranz earned 15 total points
ID: 6169417
Oops, varStr = "This is a ""PEN"""

Your'e gunna get a bunch of replies...
0
 
LVL 7

Expert Comment

by:daniel_c
ID: 6169437
Hohoho, another one here:

varStr = "This is a " & chr(34) & "PEN" & chr(34)
0
 
LVL 2

Expert Comment

by:RickHalle
ID: 6170008
<%
Option Explicit
Dim varStr
varStr = "This is a ""PEN"""
%>

Rick
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question