473,761 Members | 5,163 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6715
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******** ******@tk2msftn gp13.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_i t-mate.co.uk> píše v diskusním příspěvku
news:#1******** ******@tk2msftn gp13.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******** ******@tk2msftn gp13.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******** ******@TK2MSFTN GP09.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_i t-mate.co.uk> píše v diskusním příspěvku
news:#1******** ******@tk2msftn gp13.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******** ******@tk2msftn gp13.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_i t-mate.co.uk> píše v diskusním příspěvku
news:#K******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP09.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_i t-mate.co.uk> píše v diskusním příspěvku
news:#1******** ******@tk2msftn gp13.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******** ******@tk2msftn gp13.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******** ********@TK2MSF TNGP09.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***@Idontwan tnostinkingemai lfromyou.com> píše v diskusním
příspěvku news:10******** *****@corp.supe rnews.com...
<ad***********@ syscz.com> wrote in message
news:ej******** ********@TK2MSF TNGP09.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
21412
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 of MONITOR, 19\" CODAR EAGLE.';return true;" onMouseOut="window.status='';return true;"> <img width='98' height='96' border='0' src='Files/category/computers/bigimages/computers-sub-monitors.jpg' alt='MONITOR, 19" CODAR EAGLE'></a>
7
96320
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 %% should be used. Wouldn't it have been better (from design perspective) if the same escape character had been used in this case too. Forgive me for posting without verfying things with any standard compiler, i don't have the means for now.
18
7195
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 QID=\"55111\"><Tag2 AID=\"5511101\"></Tag2></Tag1><Tag1 QID=\"55112\"><Tag2 AID=\"5511217\"></Tag2></Tag1><Tag1 QID=\"5512282\"><Tag2 AID=\"551228206\"></Tag2></Tag1><Tag1 QID=\"55114\"><Tag2 AID=\"5511406\"></Tag2></Tag1><Tag1 QID=\"55115\"><Tag2
8
1379
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 = FileVersionInfo.GetVersionInfo(@dir); Thanks
15
18321
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. Any idea if this is a bug? if (e.KeyChar == '\e') { this.Close(); }
131
9267
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 you pass a second argument of True (the default is False): 'the "quick" &amp; &lt;brown&gt; fox' 'the &quot;quick&quot; &amp; &lt;brown&gt; fox' This seems to me to be dumb. The default option should be the safe one: that is, escape _all_ the potentially troublesome...
5
15689
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 number 040? Is it a decimal number from the ASCII code chart? (compiling using gcc on SunOS 5.8, Sparc, Ultra-80) Just curious. Thanks.
0
10111
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9948
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9902
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9765
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7327
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5364
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3866
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2738
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.