Wednesday, March 28, 2012

List of UpdatePanels on client side

Is there a way of getting a list of updatepanels in clientside script? If so, is there a way to figure out which one(s) are performing updates?

You can look at Sys.WebForms.PageRequestManager.getInstance()._updatePanelIDs. It's an array of UpdatePanel IDs on the page.

Only one panel can be in async postback at a time, so you could maintain a variable referencing the currently updating panel (if any), by setting and clearing it in BeginRequest and EndRequest.


fantastic. I appreciate the help

No comments:

Post a Comment