title: How do I use JavaScript to do a postback of another button
body: <p>I have two buttons</p>
  
  <p></p>
  
  <p></p>
  
  <p>What I would like to do is inside button1_click() which is a javascript method, I would like to do a postback just like if btnButton2 was pressed.</p>
  
  <p>I tried doing the following but it didn't seem to work.</p>
  
  <p>function button1_click()
  {
      __doPostBack('btnButton2','')</p>
  
  <p>}</p>
  
  <p>and whilst that refreshed the page, it never went through to the btnButton2_Click trigger.</p>