ATLAS UpdateProgressSignup: get a notification of UpdatePanel's events
UPDATE 03/09/2006: This post has a follow up, please read this for the updates.One of the most asked questions on the ATLAS forums - one I asked
myself just yesterday - is about how to get a notification when the
UpdatePanels in the page perform their asynchronous postback to the
server and moslty when they return their results.
If the
UpdateProgress control does its work pretty well allowing to display a
message during partial updates, someone may be interested in performing
some custom actions when those events fire.
I don't want to
delve into the mechanisms by which ATLAS performs its asynchronous
calls and how the UpdateProgress subscribes to those events, for which
I redirect you to the ATLAS forum, where it has been discussed largely
like in
this post.
Since
the current ATLAS CTP doesn't provide us with an easy way of doing that
I have created a server control which exposes two properties, which in
turn accept the names of two Javascript functions you can write in your
page and which are called respectively when the UpdatePanels initiate
the postback and when the results are returned.
You can find more details and the download links
here.