Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 06, 2011 03:26 AM by chetan.sarode
Jun 27, 2007 01:36 PM|LINK
I have seen telernik, component art and other ajax software show a page loading image or message while the request for the page is being processes. Is there a script for this that the average joe coder can use? I would like to have this message displayed
on my slow loading pages.
Jun 27, 2007 05:30 PM|LINK
In your page, that need to have ScriptManager use The updateprogress ... like this ...
<asp:UpdateProgress ID="UpdateProgressPartial" runat="server" DisplayAfter="0" DynamicLayout="true">
<asp:Image ID="ImgLoading" runat="server" Height="12" ImageUrl="~/images/loading.gif" />
... To all pages, u can use with MasterPage ...
Jun 27, 2007 08:31 PM|LINK
I have the following code now and it is not diong anything. What am I missing here besides my brain? :)
Jun 28, 2007 06:12 AM|LINK
create a custom control that inherits from WebControl, let’s call it Loader
In the code for Loader, have it override the Render method and call GetPostBackEvent reference. It should render out clientside script for the pageLoad function that contains
the result of the call to GetPostBackEventReference.
The Loader control should also implement the IPostbackEventHandler interface. In the RaisePostBackEvent method call DataBind on the page.
Now you can use the control on your page to have the UpdatePanel refreshed when the page loads.
Here is your sample packaged as a custom control.
And the custom control:
Also check out this article
Jul 03, 2007 03:34 PM|LINK
I must be doing something wrong, this is not working.
Jul 03, 2007 08:40 PM|LINK
Jul 03, 2007 08:46 PM|LINK
Jul 05, 2007 02:34 PM|LINK
I copied your code verbatium and it still did not work, what would I be missing in regards to this code? :)
May 05, 2011 03:54 PM|LINK
Check out the MVP's short and concise answer on this page:
May 06, 2011 03:26 AM|LINK