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

Double Apostrophe "

How to you print a double apostrophe in asp.net using vb? meaning for e.g. I
want to write ", So I do a Response.Write(""") Something like that, but the
mentioned is wrong. Thank you in advance
Nov 19 '05 #1
3 2162
=?Utf-8?B?d3J5dGF0?= <wr****@discussions.microsoft.com> wrote in
news:1E**********************************@microsof t.com:
How to you print a double apostrophe in asp.net using vb? meaning for
e.g. I want to write ", So I do a Response.Write(""") Something like
that, but the mentioned is wrong. Thank you in advance

You double up the apostrophe... like response.write("""")

Or you can use Chr(34)

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2
Hi

Or you can do Response.Write("\"")

Regards,

Daniel Roth
MCSD.NET

Lucas Tam wrote:
=?Utf-8?B?d3J5dGF0?= <wr****@discussions.microsoft.com> wrote in
news:1E**********************************@microsof t.com:
How to you print a double apostrophe in asp.net using vb? meaning for e.g. I want to write ", So I do a Response.Write(""") Something like that, but the mentioned is wrong. Thank you in advance

You double up the apostrophe... like response.write("""")

Or you can use Chr(34)

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/


Nov 19 '05 #3
No. It's c# syntax. In VB.NET, either use " to escape next " like
Dim str As String = "It's 2"" width."
or use Chr(34).
str = "It's 2" + Chr(34) + " width."

Elton Wang

"da********@gmail.com" wrote:
Hi

Or you can do Response.Write("\"")

Regards,

Daniel Roth
MCSD.NET

Lucas Tam wrote:
=?Utf-8?B?d3J5dGF0?= <wr****@discussions.microsoft.com> wrote in
news:1E**********************************@microsof t.com:
How to you print a double apostrophe in asp.net using vb? meaning for e.g. I want to write ", So I do a Response.Write(""") Something like that, but the mentioned is wrong. Thank you in advance

You double up the apostrophe... like response.write("""")

Or you can use Chr(34)

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/


Nov 19 '05 #4

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

Similar topics

2
by: David Bird | last post by:
I am attempting to build a command string to update a field in a dataset. the command string looks like this: Dim cmdString As String = "Update set lName = '" & clName.Trim & "', fName = '" &...
5
by: Les Juby | last post by:
A client needs a routine to alert him as to which memo records in an Access-2000 database have had double apostrophes inserted in the text. These are stopping a Java mouseover from executing. ...
13
by: Joey Martin | last post by:
I'm sure this has to be a simple fix. I just cannot figure it out. To resolve the typical apostrope issue, I have the acarriername = Replace(txtcarriername.text, "'", "''") My problem is that...
15
by: soup_or_power | last post by:
Hello All: I'm having a whale of a problem with the following code. When the words beginning with sugg contain an escaped single-quote (\' ==> back-slash followed by quote) the script causes an...
7
by: gar | last post by:
Hi, I need to replace all the double quotes (") in a textbox with single quotes ('). I used this code text= Replace(text, """", "'" This works fine (for normal double quotes).The problem...
9
by: Huy | last post by:
I've been unable to find information clarifying this but. What is the difference between 'somestring' and "somestring"? When I use type() it still reports as string. If there is a difference...
1
by: MRW | last post by:
I'm working with an Access 2002 database. Whenever I entered information from a from into the database, I replace every apostrophe with a double apostrophe as everybody has suggested. However, at...
1
by: karen987 | last post by:
I have an ASP news page to which you can add comments. The comments open up in a new window, and users can click reply to reply to them after which they are taken to the parent page which has a...
2
by: Earl | last post by:
Anyone know why the RowFilter has to be double-escaped? Anticipating names with apostrophes, a single escape does not provide the proper name to filter on. For example, this would cause an...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.