title: Prevent closing Modal from ASP NET Button
body: <p>For my <strong>ASP Webforms Application</strong> I use a <strong>Modal from Bootstrap</strong> for the settings.</p>
  
  <pre><code>&lt;asp:Button CssClass="btn btn-default" data-toggle="modal" data-target="#myModal" OnClientClick="return false;" runat="server" Text="Einstellungen" /&gt;
  </code></pre>
  
  <p>As you can see, I already have to prevent the Button for postback. Because if I <strong>click the button the Modal opens, postback starts and the Modal close.</strong></p>
  
  <p>So this problem I fixed.</p>
  
  <p>But now if I open the modal and wanna click a Button in this Modal:</p>
  
  <pre><code> &lt;asp:Button runat="server" ID="dropbox" Text="Mit Dropbox anmelden" CausesValidation="false" OnClick="dropboxButton" CssClass="btn btn-info" /&gt;
  </code></pre>
  
  <p>The Modal close... But I want that the user sees that the Accountinformation from him filled in. 
  Also I have a field for adding entries after clicking the "+" Button. After every click for adding, the modal will be closed...</p>
  
  <p>I already tried <strong>data-backdrop="static"</strong> and something with Javascript and <strong>e.preventDefault();</strong></p>
  
  <p>Any ideas?</p>