How to get session data in .js file
<p>In my application when the user is login the particular <code>user id</code> is stored in the session. I want to get this <code>id</code> in a <code>js</code> file.In this <code>js</code> file contain state provider,factory etc</p>

<p><strong>js</strong></p>

<pre><code>  var sessionValue = "'"+&lt;%=Session["userId"]%&gt;+"'"
  alert(sessionValue)
</code></pre>

<p>But it is show some error(<code>Unexpected</code>)</p>