473,231 Members | 3,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

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 6681
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Alden Streeter | last post by:
Here is the HTML that is being output by my asp page: <a href='Files/category/computers/bigimages/computers-sub-monitors.jpg' target='_blank' onMouseOver="window.status='Click for a larger image...
7
by: teachtiro | last post by:
Hi, 'C' says \ is the escape character to be used when characters are to be interpreted in an uncommon sense, e.g. \t usage in printf(), but for printing % through printf(), i have read that %%...
18
by: Steve Litvack | last post by:
Hello, I have built an XMLDocument object instance and I get the following string when I examine the InnerXml property: <?xml version=\"1.0\"?><ROOT><UserData UserID=\"2282\"><Tag1...
8
by: Dakkar | last post by:
I have an illegal character error so i used @ escape character but it doesnt work how can i make this work possible String dir = myproc.MainModule.FileName.ToString(); FileVersionInfo info =...
15
by: pkaeowic | last post by:
I am having a problem with the "escape" character \e. This code is in my Windows form KeyPress event. The compiler gives me "unrecognized escape sequence" even though this is documented in MSDN....
131
by: Lawrence D'Oliveiro | last post by:
The "escape" function in the "cgi" module escapes characters with special meanings in HTML. The ones that need escaping are '<', '&' and '"'. However, cgi.escape only escapes the quote character if...
5
by: vlsidesign | last post by:
The printf function returns "warning: unknown escape sequence: \040" for a backslash-space combination. If the ascii decimal number for space is 32 and the backslash is 92, why this particular...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.