Sign in | Join
Last post 08-29-2007 5:59 AM by Jin-Yu Yin - MSFT. 2 replies.
Sort Posts: Oldest to newest Newest to oldest
I have an asp:UpdateProgress associated with an asp:UpdatePanel.
Sometimes, the UpdateProgress control does activate.
How do I activate it myself through code?
Thank you
See this post http://forums.asp.net/t/1141653.aspx
-Damien
Hi,
Try this:
prm.add_initializeRequest(InitializeRequest);prm.add_endRequest(EndRequest);var postBackElement;function InitializeRequest(sender, args) { if (prm.get_isInAsyncPostBack()) { args.set_cancel(true); } postBackElement = args.get_postBackElement(); if (postBackElement.id == 'Panel1Trigger') { $get('UpdateProgress1').style.display = 'block'; }}function EndRequest(sender, args) { if (postBackElement.id == 'Panel1Trigger') { $get('UpdateProgress1').style.display = 'none'; }}
See the online documentation
http://asp.net/ajax/documentation/live/tutorials/ProgrammingUpdateProgress.aspx
Best Regards