title: Convert C# string to JavaScript String
body: <p>Does anybody know a way to convert a C# string to a JavaScript String in Asp.net.  My code looks like this:</p>
  
  <pre><code>&lt;script&gt;
    @{string thing = "Cats";}
    var thing = String(@thing);
  
  
    &lt;/script&gt; 
  
  
  
  &lt;/div&gt;
  &lt;body onload="eventAlert(thing)"&gt;&lt;/body&gt;
  </code></pre>