title: How to fire Onclick and Onclientclick with Bootstrap Modal?
body: <p>Here's My Markup : </p>
  
  <blockquote>
    <p>Ps: I am using Metronic Inbuilt template which has all things
    included.</p>
  </blockquote>
  
  <pre><code>&lt;link href="vendors.bundle.css" rel="stylesheet" type="text/css"&gt;
      &lt;link href="style.bundle.css" rel="stylesheet" type="text/css"&gt;
      &lt;script src="jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="scripts.bundle.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="vendors.bundle.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="bootstrap-datepicker.js" type="text/javascript"&gt;&lt;/script&gt;
  
  &lt;script&gt;
          $(function () {
  
              $('#trigger').click(function () {
                  $('#myModal').modal("toggle");
                  return false;
              })
  
          });
      &lt;/script&gt;
  </code></pre>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;asp:Button runat="server" ID="trigger" OnClick="Unnamed_Click" Text="Click"/&gt;
  &lt;div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" style="display: none;" aria-hidden="true"&gt;
      &lt;div class="modal-dialog modal-lg" role="document"&gt;
          &lt;div class="modal-content"&gt;
  &lt;div class="modal-header"&gt;
      &lt;h5 class="modal-title" id="exampleModalLabel"&gt;Bootstrap Date Picker Examples&lt;/h5&gt;
      &lt;asp:Label runat="server" ID="ShowLbl"&gt;&lt;/asp:Label&gt;
      &lt;button type="button" class="close" data-dismiss="modal" aria-label="Close"&gt;
          &lt;span aria-hidden="true" class="la la-remove"&gt;&lt;/span&gt;
      &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class="modal-body"&gt;
      &lt;div class="form-group m-form__group row m--margin-top-20"&gt;
          &lt;label class="col-form-label col-lg-3 col-sm-12"&gt;Minimum Setup&lt;/label&gt;
          &lt;div class="col-lg-9 col-md-9 col-sm-12"&gt;
  &lt;input type="text" class="form-control" id="m_datepicker_1_modal" readonly="" placeholder="Select date"&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="form-group m-form__group row"&gt;
          &lt;label class="col-form-label col-lg-3 col-sm-12"&gt;Input Group Setup&lt;/label&gt;
          &lt;div class="col-lg-9 col-md-9 col-sm-12"&gt;
  &lt;div class="input-group date"&gt;
      &lt;input type="text" class="form-control m-input" readonly="" placeholder="Select date" id="m_datepicker_2_modal"&gt;
      &lt;div class="input-group-append"&gt;
          &lt;span class="input-group-text"&gt;
  &lt;i class="la la-calendar-check-o"&gt;&lt;/i&gt;
          &lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="form-group m-form__group row m--margin-bottom-20"&gt;
          &lt;label class="col-form-label col-lg-3 col-sm-12"&gt;Enable Helper Buttons&lt;/label&gt;
          &lt;div class="col-lg-9 col-md-9 col-sm-12"&gt;
  &lt;div class="input-group date"&gt;
      &lt;input type="text" class="form-control m-input" value="05/20/2017" id="m_datepicker_3_modal"&gt;
      &lt;div class="input-group-append"&gt;
          &lt;span class="input-group-text"&gt;
  &lt;i class="la la-calendar"&gt;&lt;/i&gt;
          &lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;span class="m-form__help"&gt;Enable clear and today helper buttons&lt;/span&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="modal-footer"&gt;
      &lt;button type="button" class="btn btn-brand m-btn" data-dismiss="modal"&gt;Close&lt;/button&gt;
      &lt;button type="button" class="btn btn-secondary m-btn"&gt;Submit&lt;/button&gt;
  &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When I load up the modal, clientclick is being fired.</p>
  
  <p>I would also like to fire onclick event correspondingly. How to make it possible? It is my first time to ask a question. Please help me is it possible?</p>
  
  <p>Here's my back-end :</p>
  
  <pre><code>protected void Unnamed_Click(object sender, EventArgs e)
  {
     //ShowLbl.Text = "Clicked";
      do some SQL Work ();
      then show it to modal();
   }
  </code></pre>