escape character doesnt work??

G

Guest

Hello, I hope someone will help me or I will have to dive from 11th floor.
Why this --> test = @"Melanie "Jets" Riggs" doesnt work in asp? I need
something like that and I dont know how to make it work. Please help me!!
answer to (e-mail address removed) many thanx
 
S

Steven Burn

You mean this?...........

<%
Response.Write "Melanie " & chr(34) & "Jets" & chr(34) & " Riggs"
%>

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
 
G

Guest

nono, I need to have few " in one response write.
actually I want to have something like this q = "<!--include file=" + pageid
+ ".asp"-->"
but how can I make it?
 
S

Steven Burn

Well thats simple enough;

<%
Dim PAGEID
PAGEID = "page1" '// Obviously this will be whatever pageid actually
is

q = "<!--include file=" & chr(34) & PAGEID & ".asp" & chr(34) &
"-->"
Responde.Write q
%>

Using chr(34) allows you to have " whenever you need to "print" them, rather
than have the page interpret them as code.

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
 

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

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,372
Latest member
LucretiaFo

Latest Threads

Top