Hey,
Because I need to load thousands of records on to GridView so when I access to this page, it takes about 20 seconds, I wonder that how can I implement it with Ajax that: an animation ( image) will be loaded at the center of my page, the rest of page will be silver, when the page is loaded successfully, animation will be disappeared and the page changed to white.
Anybody knows how to implement it, could you please help me?
Thanks,
Joesy
Hi,
you can use the UpdateProgress control or the PageRequestManager class. Take a look at the bottom of this page for an example:http://ajax.asp.net/docs/ClientReference/Sys.WebForms/PageRequestManagerClass/default.aspx.
Grz, Kris.
Hi Kris,
Thanks, I will try it.
Grz, Joesy
This may help.http://forums.asp.net/thread/1622218.aspx
It involves hiding or displaying a specific DIV until the page has loaded using the BODY tags onload event handler.
Here's another situation where it uses an UpdatePanel and an UpdateeProgress control:http://forums.asp.net/thread/1618788.aspx
Cheers,
Al
Hey Alharding,
Thanks for your advices,
Grz, Joesy
No comments:
Post a Comment