Any way to pass an object from c# code behind to javascript?
<p>I want to pass an object from my c# code behind to my javascript. I know that I can use </p>

<pre><code>var myVar = '&lt;%# myVar %&gt;' 
</code></pre>

<p>to pass variables. However, that method seems to pass everything as a string. I want an object. </p>

<p>Is there any way to accomplish that?</p>
