Communication between Page and User Controls
Posted
by Narmatha Balasundaram
on Stack Overflow
See other posts from Stack Overflow
or by Narmatha Balasundaram
Published on 2010-03-31T14:10:24Z
Indexed on
2010/03/31
14:13 UTC
Read the original article
Hit count: 349
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?
© Stack Overflow or respective owner