title: How to show message from code behind in bootstrap's modal popup in asp.net c#
body: <p>Actually what I mean is when I click the asp dot net button which is located in the modal popup.
  when I click that button I want to print the message from the server that data is properly saved or not.</p>
  
  <p>When I click the button bootstrap's modal pop up is vanished bcoz of the postback.
  what can i do to print the mesage from server.</p>
  
  <p><strong>Below is my modal pop uo code in HTML.</strong></p>
  
  <pre><code>&lt;!-- Modal --&gt;
              &lt;div class="modal fade" id="myModal" role="dialog"&gt;
                  &lt;div class="modal-dialog modal-lg"&gt;
                      &lt;div class="modal-content"&gt;
                          &lt;div class="modal-header"&gt;
                              &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
                              &lt;h4 class="modal-title"&gt;Modal Header&lt;/h4&gt;
                          &lt;/div&gt;
                          &lt;div class="modal-body"&gt;
  
   &lt;asp:Label ID="lblMessage" runat="server" &gt;&lt;/asp:Label&gt;
                          &lt;/div&gt;
                          &lt;div class="modal-footer"&gt;
                              &lt;asp:Button ID="Button2" OnClick="Button2_Click" runat="server" Text="Click Me" /&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p><strong>c# Code</strong></p>
  
  <pre><code>protected void Button2_Click(object sender, EventArgs e)
          {
              Label1.Text = "I am called";
          }
  </code></pre>