title: How  to display save confirmation message on my Web form when user saves new form by clicking Save button
body: <p>I am very new to ASP.NET. I am working on some other developer's Web form. I have been asked to fix a bug which says: </p>
  
  <blockquote>
    <p>No success message is displayed when user clicks Save button after
    adding information to the form (first time or while updating)</p>
  </blockquote>
  
  <p>There is a Label at the top of the page with ID <code>lblMsgs</code></p>
  
  <pre><code>&lt;asp:Label ID="lblMsgs" runat="server"&gt;
  </code></pre>
  
  <p>I have added this to the Code behind in the appropriate place:</p>
  
  <pre><code>lblMsgs.Text = "Message Text";
  </code></pre>
  
  <p>Now, my question is how do I modify the HTML or code behind to make sure that when Save button is clicked, the code checks that the data is saved to the database and displays save successful message on the Web form.</p>
  
  <p>Can you please help by giving example of the code using my label ID above?</p>
  
  <p>Thank you in advance.</p>