A good way to pass information javascript?
<p>I have an asp.net website, but I need to pass stuff to javascript to do stuff there. At the moment, I am doing things like this:</p>

<pre><code>&lt;script type="text/javascript"&gt;
    var userHasMicrositePhoto = '&lt;%=hasMicrositePhoto%&gt;';
&lt;/script&gt;
</code></pre>

<p>But I've been told that putting lots of script tags in like this is bad, and also its annoying to have to keep writing Properties in my code behind.</p>

<p>What is a better way to do this?</p>
