469,328 Members | 1,276 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,328 developers. It's quick & easy.

escape character doesnt work??

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 da*@syscz.com many thanx
Jul 19 '05 #1
6 6465
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)
<ad***********@syscz.com> wrote in message
news:u6**************@tk2msftngp13.phx.gbl...
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 da*@syscz.com many thanx

Jul 19 '05 #2
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?

"Steven Burn" <nobody@PVT_it-mate.co.uk> píše v diskusním příspěvku
news:#1**************@tk2msftngp13.phx.gbl...
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)
<ad***********@syscz.com> wrote in message
news:u6**************@tk2msftngp13.phx.gbl...
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 da*@syscz.com many thanx


Jul 19 '05 #3
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)
<ad***********@syscz.com> wrote in message
news:ej**************@TK2MSFTNGP09.phx.gbl...
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?

"Steven Burn" <nobody@PVT_it-mate.co.uk> píše v diskusním příspěvku
news:#1**************@tk2msftngp13.phx.gbl...
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)
<ad***********@syscz.com> wrote in message
news:u6**************@tk2msftngp13.phx.gbl...
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 da*@syscz.com many thanx



Jul 19 '05 #4
ok, I understand, but the code should be interpreted. thats the problem

"Steven Burn" <nobody@PVT_it-mate.co.uk> píše v diskusním příspěvku
news:#K**************@TK2MSFTNGP09.phx.gbl...
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)
<ad***********@syscz.com> wrote in message
news:ej**************@TK2MSFTNGP09.phx.gbl...
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?

"Steven Burn" <nobody@PVT_it-mate.co.uk> píše v diskusním příspěvku
news:#1**************@tk2msftngp13.phx.gbl...
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)
<ad***********@syscz.com> wrote in message
news:u6**************@tk2msftngp13.phx.gbl...
> 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 da*@syscz.com many thanx
>
>



Jul 19 '05 #5
<ad***********@syscz.com> wrote in message
news:ej****************@TK2MSFTNGP09.phx.gbl...
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?


To escape the double quote, double it up.
For example:
q = "He said ""I am here"""
Response.Write "<div>" & q & "</div>"

This will result in:
<div>He said "I am here"</div>

So in your example:
q = "<!--include file=""" & pageid & ".asp""-->"

Note, if you're trying to include a file dynamically, be advised that this
will not work. Include files are processed *BEFORE* ASP.
Try reading this:
http://www.aspfaq.com/show.asp?id=2042

Regards,
Peter Foti

Jul 19 '05 #6
many thanx, but .... shit, everything is wrong. :(
"Peter Foti" <pe***@Idontwantnostinkingemailfromyou.com> píše v diskusním
příspěvku news:10*************@corp.supernews.com...
<ad***********@syscz.com> wrote in message
news:ej****************@TK2MSFTNGP09.phx.gbl...
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?


To escape the double quote, double it up.
For example:
q = "He said ""I am here"""
Response.Write "<div>" & q & "</div>"

This will result in:
<div>He said "I am here"</div>

So in your example:
q = "<!--include file=""" & pageid & ".asp""-->"

Note, if you're trying to include a file dynamically, be advised that this
will not work. Include files are processed *BEFORE* ASP.
Try reading this:
http://www.aspfaq.com/show.asp?id=2042

Regards,
Peter Foti

Jul 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Steve Litvack | last post: by
8 posts views Thread by Dakkar | last post: by
15 posts views Thread by pkaeowic | last post: by
131 posts views Thread by Lawrence D'Oliveiro | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by listenups61195 | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.