title: hide a label after some time automatically after a buttonclick
body: <p>I am Working in ASP.NET and C#.</p>
  
  <p>In my Application i have a registration form in which there is a label which shows the <strong>success</strong> and <strong>failure</strong> of the registration.The text for that label is from codebehind based on the condition.Now what i need is to hide the label after sometime (say 5sec) on clicking the submit button.I have tried this using javascript but its not working properly.please let me know whats the mistake or give ur sugessions.</p>
  
  <p><strong>Script</strong>:</p>
  
  <pre><code>    function HideLabel() {
          document.getElementById('&lt;%= lbl1.ClientID %&gt;').style.display = "none";
      }
      setTimeout("HideLabel();", 5000);
  </code></pre>