title: How to set JavaScript variable to ASP.NET Session?
body: <p>How can I set a JavaScript variable to an ASP.NET Session? Currently the value in the price is not stored in the session, instead it stores the string "'+price+'". How to store the price variable's value? </p>
  
  <pre><code>function getCheckboxVal(el)
  {
      var price = el.getAttribute("Price");
      '&lt;%Session["Price"] = "' + price +'"; %&gt;';
  }
  </code></pre>