473,387 Members | 1,379 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,387 software developers and data experts.

Response.write="And I say, "How are you?"."

nsj
How shall i use quotation marks within another in asp.net?
Nov 19 '05 #1
4 4811
You have to escape them. You can use \" if I remember correctly as the
escape character for a doublequote.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"nsj" <ns*@discussions.microsoft.com> wrote in message
news:34**********************************@microsof t.com...
How shall i use quotation marks within another in asp.net?

Nov 19 '05 #2
J
That's only good for C# or Java, the escape characters that you mention
Mark, for VB.NET just double up the double quotes inside the outer ones,

Response.Write("So I said, ""How are you?""")

J.

"Mark Fitzpatrick" <ma******@fitzme.com> wrote in message
news:up****************@TK2MSFTNGP12.phx.gbl...
You have to escape them. You can use \" if I remember correctly as the
escape character for a doublequote.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"nsj" <ns*@discussions.microsoft.com> wrote in message
news:34**********************************@microsof t.com...
How shall i use quotation marks within another in asp.net?


Nov 19 '05 #3
response.write("nsj says, ""How are you?""")

"nsj" <ns*@discussions.microsoft.com> wrote in message
news:34**********************************@microsof t.com...
How shall i use quotation marks within another in asp.net?

Nov 19 '05 #4
VB.NET
"And I say, ""How are you?""."

C#
"And I say, \"How are you?\"."

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***********************************************
Think outside the box!
***********************************************
"nsj" <ns*@discussions.microsoft.com> wrote in message
news:34**********************************@microsof t.com...
How shall i use quotation marks within another in asp.net?

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: | last post by:
Could some help m figure out to strip an unknown range of characters in a path between the first "/" and "/" found in a folder path somewhere on my site. eg: /catamaranco/sales/boat/1.asp eg:...
5
by: martin | last post by:
Hi, I would be extremly grateful for some help on producing an xml fragemt. The fragment that I wish to produce should look like this <Addresses> <Address>&qout;Somebody's Name&quot;...
2
by: danthman | last post by:
I'm trying to write a complex multi-line SQL select command on an ASP.NET 2.0 page, but I'm not sure how to get the "greater than" sign (>) into the quotes without it thinking it's a tag. Can this...
13
by: Fao | last post by:
Hello, I am having some problems with inheritance. The compiler does not not return any error messages, but when I execute the program, it only allows me to enter the number, but nothing else...
2
by: Johnny Ljunggren | last post by:
Hello all Just noticed that a testprogram I've made creates a non-conforming XML file. Here's the code (C#) and output: XmlWriterSettings settings = new XmlWriterSettings(); settings.Indent =...
5
by: bh | last post by:
I'm trying to convert the following statement to VB.NET: writer.Write(@"<some html here>"); I tried simply removing the semicolon, but VB chokes on the @-sign. Unfortunately, when searching...
5
by: coldstar | last post by:
In an ASP Querystring, how do I include the double quotes in the code below at "1.0" part as text in my string? I have tried ""1.0"" and almost everything else but can't get it to work. I need...
2
by: mauricesmith42 | last post by:
Sorry i know this is rather large to be posting, but in order to understand the question you have to see all the code //#include <windows.h> //needed for opening folders #include...
27
by: duli | last post by:
Hi: I would like recommendations for books (in any language, not necessarily C++, C, python) which have walkthroughs for developing a big software project ? So starting from inception, problem...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.