title: Passing value from C# codebehind to javascript
body: <p>What is the best way to pass a value from C# code to javascript?
  Currently I am setting an asp.net hidden field in the Page_Load method.</p>
  
  <p>Also if I pass a value using GET like </p>
  
  <pre><code>Response.Redirect("myurl.com/myPage.aspx?id=300");
  </code></pre>
  
  <p>how can I get the value of id from myPage using javascript?</p>
  
  <p>Is there a nice way to do this in jquery?</p>