access c# variable in javasciprt file .js
<p>Is it possible to create a javascript file with some c# variables? Something like this:</p>

<pre><code>var foo =  &lt;%= CODE_VALUE.foo %&gt;;
</code></pre>

<p>Or do I have to create them in a usercontrol.ascx which I include in the  section?</p>

<p>Thanks</p>
