title: Tempdata Message how to hide
body: <p>I am Passing TempDatamessage to use if user login invalid login deatails i passing message "login invalid" tempdata.i just need to hide with 5 sec automatically without refresh.</p>
  
  <pre><code>         TempData["mesage"] = "Your User Id Is Not Activated, Please 
           Contact Our Support";
  </code></pre>
  
  <p>How to hide the message</p>
  
  <p>in the view Page I am Passing </p>
  
  <pre><code>     &lt;script type="text/javascript"&gt;
         function HideLabel() {
         setTimeout(function() {
          $('#msg1').fadeOut('fast');
          }, 1000); 
       &lt;/script&gt;
       &lt;div class="cornerpage"&gt;
          &lt;h8 &gt;@TempData["mesage"]&lt;/h8&gt;
          &lt;h8 id="msg1"&gt;@TempData["mesage1"]&lt;/h8&gt;
  
         &lt;/div&gt;
  </code></pre>