How do i display a simple loading message on a masked screen while my webpage loads.
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.
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..
The way i redirect to the compare page is a c# function
protected void redirect_comparepage(object sender, EventArgs e)
{
Response.Redirect("~/ProductComparison.aspx", false);
}
I tried to do the following on the comparison page however it does not work.
How to display a loading screen while site content loads Any suggestions?