title: Firing the OnClick function of an asp:Button from calling .click()
body: <p>I'd like to call some server-side code from a Javascript function.</p>
  
  <p>I have this button:</p>
  
  <pre><code>&lt;asp:Button ID="quickAdd" runat="server" text = "Quick add" OnClick="QuickAdd" /&gt;
  </code></pre>
  
  <p>If I click it, the C# function QuickAdd is called as expected</p>
  
  <p>I have this command in a javascript function:</p>
  
  <pre><code>document.getElementById("quickAdd").click();
  </code></pre>
  
  <p>and the execution of this function does nothing. No error, I assume it simply clicks the button but this doesn't cause trigger the event necessary for the QuickAdd C# function to fire.</p>
  
  <p>How do I get around this?</p>