Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

Escape character in ASP ?

I have a string :

 This is a "PEN"

How do I assign that string in a ASP variable ?
0
johnmemor
Asked:
johnmemor
1 Solution
 
mgfranzCommented:
varStr = "THis is a ""PEN""
0
 
ckanetaCommented:
without quotes
  strvar="This is a PEN"
with quotes
  strvar="This is a ""PEN"""
0
 
mgfranzCommented:
Oops, varStr = "This is a ""PEN"""

Your'e gunna get a bunch of replies...
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now