Double Apostrophe "

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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)
 
Hi

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

Regards,

Daniel Roth
MCSD.NET
 
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

Back
Top