title: ASP.NET show ModalPopupExtender from Buttons created in Code-Behind
body: <p>Hi I have a modalPopupExtender in my aspx web page pointing to a Panel and in Code-Behind I create buttons which I want them to show the modalPopup, so I have:</p>
  
  <pre><code>buttonX.OnClientClick = "javascript:$get(" + modalPopup.ClientID + ").show();";
  </code></pre>
  
  <p>but instead it just does a PostBack, even if I put "return false;" at the end of the past code.</p>