I have code that changes a value that is associated with several controls in other update panels. When this event handler fires, I would like it to force other update panels to update again so that they can recover.
Is it possible?
Edit:
To clarify, I have an update panel in one user control, other update panels are in other user controls, so they cannot see each other unless I open some user properties and use findControl, etc. etc....
Change again:
Here is what I came up with:
public void Update() { recursiveUpdate(this); } private void recursiveUpdate(Control control) { foreach (Control c in control.Controls) { if (c is UpdatePanel) { ((UpdatePanel)c).Update(); } if (c.HasControls()) { recursiveUpdate(c); } } }
I had 3 main user controls that were full of update panels, these controls were visible on the main page, so I added an update method there called Update on these three.
In my trigger control, I just ran this.Page into the current page and named Update.
Edit:
AARRGGGG!
When updating update panels, it does not call Page_Load inside the subcontrol in them ... What should I do now?
source share