title: Pass code behind variable value to jQuery function
body: <p>I am not an expert in jQuery and I am trying to pass some variable values from C# to my function called on keyup and onclick events. So far I have something like this:</p>
  
  <pre><code>$('mydiv').bind('keyup click', function(event) {}
  </code></pre>
  
  <p>but what I need should be:</p>
  
  <pre><code>$('mydiv').bind('keyup click', function(event, UserId, ControlId) {}
  </code></pre>
  
  <p>, where UserId and ControlId are some ids I am getting in code behind from the query string. I am also using jQuery 1.6.4.</p>
  
  <p>How can I do this, preferably without using hidden input fields?
  Thank you.</p>