Session in jquery
<p>I am trying to get session value in jquery using following code:</p>

<pre><code>function CheckUserType() {

var user = '&lt;%= Session["LoginUserType"]%&gt;';
alert(user);
if (user == 'Type1') {

jQuery("#customizationTool.customization-tool div.CostEstimate div.EstimateDetail div.QtyUpdateSec").hide();

jQuery("#customizationTool.customization-tool div.CostEstimate div.EstimateDetail div.AddCartSec").hide();

}
</code></pre>

<p>But I am facing the error from my browser:</p>

<blockquote>
  <p>"The Controls collection cannot be modified because the control
  contains code blocks (i.e. &lt;% ... %>)."</p>
</blockquote>

<p>How can I solve this?? </p>
