title: How do you modify a modal popup from ASP codebehind instead of letting it close?
body: <p>I'm using SimpleModal to create a popup on an ASP.net application.  The OK button calls a server-side function - and based on the resulta of that function I'd like to modify the popup (make some things visible, etc.) instead of letting it close.  If that's too difficult, I'd like to open the popup again without the user having to re-click on anything.  I'm just not sure what the best way to do this is.</p>
  
  <p>Currently the OK button in the popup looks like this:</p>
  
  <pre><code>&lt;asp:ImageButton ID="submitInfoBtn" OnClick="btnSubmitInfo_Click"
             ImageUrl="css/assets/btn_ok.png" runat="server"/&gt;  
  </code></pre>
  
  <p>and there is nothing defined that tells anything that the OK button should close the popup (the Cancel button has class="simplemodal-close", so I would expect it to do just that, but not the OK button) - anyone have any ideas on the best way through this?  Thanks in advance!!</p>