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)
 
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
 
Back
Top