Although I have experimented with the UpdatePanelAnimationExtender from the Ajax Control Toolkit, my main issue with it is that it does not wait for the animation to finish before loading new content.
What I aspire to achieve is:
- Commence asynchronous request to server
- Fade out UpdatePanel's content completely
- After UpdatePanel has fully faded out and new content is received, load in the fresh content
- Fade in the UpdatePanel
I can insert this code on the trigger initiating the postback:
OnClientClick="Sys.WebForms.PageRequestManager.getInstance().add_pageLoading(PauseForFade); FadeOut();"
In addition, I have the following JavaScript code which will halt any further processing:
function PauseForFade(sender, args) {args.set_cancel(true);}
The challenge I am facing is how to continue the loading process once my fade animation is completed. Any assistance on this matter would be greatly appreciated.