Display Ajax Loader while page rendering

Posted by Dean on Stack Overflow See other posts from Stack Overflow or by Dean
Published on 2008-10-28T08:58:40Z Indexed on 2010/05/23 11:20 UTC
Read the original article Hit count: 278

Filed under:
|
|
|

This is probably a simple question but how can I best use an AJAX loader in ASP.NET to provide a loading dialog whilst the page is being built?

I currently have an UpdatePanel with an associated UpdateProgressPanel which contains the loading message and gif in a ProgressTemplate.

Currently I have a page that onLoad() goes and gets the business entities and then displays them. While it is doing this I would like to display an AJAX loader.

Would it be better to have nothing in the page load and have a hidden button that is triggered onLoadComplete or unLoad() which would then wait for the button click method to complete displaying the UpdateProgressPanel?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about vb.net