title: Calling the button.click() event from javascript doesn't fire
body: <p>I have the following source in aspx:</p>
  
  <pre><code>&lt;div&gt;
      &lt;asp:HiddenField ID="hidValue" runat="server" /&gt;
      &lt;asp:Button runat="server" ID="hidButton" OnClick="hidButton_Click"    /&gt; 
      &lt;script type="text/javascript"&gt;
          function ExtendPanel(PanelNumber) {
              var hidValue = document.getElementById('&lt;%=hidValue.ClientID %&gt;');
              hidValue.value = PanelNumber;
  
              document.getElementById('&lt;%=hidButton.ClientID%&gt;').fireEvent("onclick");
          }
      &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In my code behind, I have the following C# function declared:</p>
  
  <pre><code>protected void hidButton_Click(object sender, EventArgs e)
  {
      int PanelNumber = int.Parse(hidValue.Value);
      ... do something with PanelNumber ...
  }
  </code></pre>
  
  <p>When I click on the button using the mouse, "hidButton_Click" function is normally executed.
  However, when the javascript function ExtendPanel(PanelNumber) is executed, the click event seems to be fired, but the function is not executed.</p>