Including the " symbol in a string

  • Thread starter Thread starter Andy B.
  • Start date Start date
A

Andy B.

I am using a StringBuilder to create html content. I have the following
line:

Html.Append("<STYLE TYPE="""text/css""">")

The compiler complains: 'Comma, ')', or a valid expression continuation
expected.' How do I fix this?
 
And if you write

Html.Append("<STYLE TYPE=""text/css"">")

?
Gilbert
 

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

Similar Threads


Back
Top