Double Apostrophe "

G

Guest

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
 
L

Lucas Tam

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)
 
G

Guest

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

Hi

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

Regards,

Daniel Roth
MCSD.NET
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top