title: How to display any action status on asp.net web page using bootstrap alerts?
body: <p>I am working on a asp.net project. It is not a MVC project.
  I have a requirement to display status messages (save succesful, save failed etc) some where on the page.
  I am using bootstrap alerts to display the same.
  I am using the below code to display the alerts.</p>
  
  <pre><code>&lt;div class = "row" style="margin:0 2px 0 2px" &gt;
      &lt;div class="col-md-12" id="AlertNotificationDiv" runat="server"&gt;
        &lt;asp:Label id="AlertNotificationBox" runat="server"/&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>On the code behind file I am using the following code to set the alerts</p>
  
  <pre><code>if (!AlertNotificationDiv.Visible)
      AlertNotificationDiv.Visible = true;
  if (!AlertNotificationBox.Visible)
      AlertNotificationBox.Visible = true;
  
  AlertNotificationDiv.Attributes.Add("class", "col-md-12 col-xs-12 col-ms-12 alert alert-success alert-dismissable");
  AlertNotificationBox.Text = "Some message comes here";
  </code></pre>
  
  <p>Is this fine or is there any better way to handle the scenario.
  The problems I am facing with this approach is.
  1. I am not able to provide a functionality where in the alert closes in about 5 sec. With some code I was able to hide the the alert after a few seconds, but if there is any post back for any other action it is appearing again.</p>
  
  <p>Can somebody tell me as to how I can make this alert go after a few seconds and it does not come again until I explicitly make the visibility to true.</p>
  
  <p>Thanks in advance.</p>