I have an ASP.NET web page where i have several DIV's (with runat="server") and i am showing records from DB in that.The number of records /data to be shown would be huge some times,I have put the code to load the content in div , in my Page_Load event. But when the page loads, I am seeing a blank screen for some seconds and then its showing the page content. I want to eliminate this.Instead i want to show a "Loading" message to user till the entire page content loads. What is the best way to do this ?
Some options came to my mind are
1 Response.Flush Response.Buffer
2 Remove the code to load the content in the page load event.Instead, load the content using jQuery's load/ ajax functions on document.ready
Can any one tell me the bet way to address this issue