title: How do I pass value from a javascript function to C# Code behind?
body: <p>I have a dynamic button which have unique <strong>id</strong>'s, I'm getting the id of the clicked button like so:</p>
  
  <pre><code>$("button").click(function() {
      //I want to pass this.id to my btnDetails_Click event in C# or to a variable Property(for efficiency)
  });
  </code></pre>
  
  <p>How do I do this? Sorry noob in javascript.</p>