title: How do i show a simple loading message on the screen while my page fetches data from server?
body: <p>How do i display a simple loading message on a masked screen while my webpage loads.</p>
  
  <p>I have a product comparison page which gets called with a button click. Now the comparison page takes approx 4 secs to load. This is because the Stored Procedure take about 3.5 secs to return a result. </p>
  
  <p>So for these 4 secs after the user clicks the button we see the previous screen with only the spinner on the tag to indicate that the page is being redirected. Is there any way i can show a page mask where the current page is blacked out before the next page is loaded..</p>
  
  <p>The way i redirect to the compare page is a c# function</p>
  
  <pre><code>protected void redirect_comparepage(object sender, EventArgs e)
  {
      Response.Redirect("~/ProductComparison.aspx", false);
  }
  </code></pre>
  
  <p>I tried to do the following on the comparison page however it does not work.</p>
  
  <p><a href="https://stackoverflow.com/questions/244183/how-to-display-a-loading-screen-while-site-content-loads#27340661">How to display a loading screen while site content loads</a>
  Any suggestions?</p>