Communication between Page and User Controls
- by Narmatha Balasundaram
I have a main page that has multiple user controls on it.
All the user controls have static text and some data to be retrieved from the DB. The aysnchronous DB call is clubbed at the page level and one call is made to avoid multiple calls (in the different user controls) to get the same data. I want the page and user controls to load initially with the static text and later refresh the contents obtained from the server.
To sum it all up,
Page Loads = Asyn calls fired on page load = Data received back from the server (XML/text/whatever) = User controls to load with this data using AJAX.
What methods do I have to let the user controls know that I have the data from the server and they need to update with this data?