output double qoute using asp

L

LamP

Hi,
I need to output a string with double qoute ex. "$5.24"
using asp and vb script. Greatly appreciate for any
assistant.
Lam
 
D

Dave Anderson

LamP said:
I need to output a string with double qoute ex. "$5.24"
using asp and vb script. Greatly appreciate for any
assistant.

VBScript:
Response.Write """$5.24"""

JScript:
Response.Write("\"$5.24\"")


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 
R

Randy Rahbar

I need to output a string with double qoute ex. "$5.24"
using asp and vb script. Greatly appreciate for any

To display quotes, you need to double them up....
response.write """$5.24"""
 
E

Evertjan.

Randy Rahbar wrote on 13 aug 2003 in
microsoft.public.inetserver.asp.general:
To display quotes, you need to double them up....
response.write """$5.24"""

Or let html do the trick:

response.write ""$5.24""
 
D

David Morgan

Response.Write Chr(34) & "$5.24" & Chr(34)

Would allow for Response.Write Chr(34) & varName & Chr(34)

Doing that with the actual quote character gets even more interesting!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,083
Members
48,773
Latest member
Kaybee

Latest Threads

Top