views:

79

answers:

1

I have the following:

  1. Master Page
  2. StatusDisplay - Ascx user control that shows MS AJAX Exceptions on PartialPostback or Update Happenning during beginRequest to endRequest
  3. Pages with Multiple levels of .ascx Web user controls, some loaded dynamically

Currently, when postback happens in Update Panel, the StatusDisplay shows "updating requests .. " and exceptions if any at the end.

I also want to send out specific status updates, like "Customer added" from different places that this StatusDisplay should show. Currently, there is no knowledge of the presence of the StatusDisplay in other controls and I want to keep it that way.

How to do this?

A: 

Use a technique called reverse ajax. Reverse Ajax allows servers to push content out to browsers immediately it becomes available. Have each part that requires the functionality derive from an abstract base that implements this technique

google "encosia.com/2007/10/03/easy-incremental-status-updates-for-long-requests/" its a great article on the subject, I cant add the link directly

almog.ori
goodlink, but can't understand how it will work with postback scenarios.
DotDot
you could use the idea of using a client side function that updates the status when postback is complete ie render out a script tag that updates the status message, ( this could be abstracted to a base class that each control uses, or you could use eventing if you wanted )
almog.ori