title: How to run onclick event in asp.net from another button's javascript?
body: <p>Void button has a confirm box after receiving true, expecting running another button's click event
  however, Void2_Button_Click not run, where is wrong?</p>
  
  <pre><code>protected void Void2_Button_Click(object sender, EventArgs e)
  {
          // do something    
  }
  
  
  Void_Button.Attributes.Add("onclick", "var agree=confirm('Confirm to void?'); if (agree){document.getElementById('Void2_Button').click();}");
  </code></pre>
  
  <p>This question has not been solved yet, Who can answer?</p>