Solved

Escape character in ASP ?

Posted on 2001-06-08
5
206 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Determining if Request.Form is empty 1 47
Summernote required 3 137
Pass through dll 2 81
Select case on click 3 13
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

785 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