Thanks for responding Shashi.
I am using a BasePage class for most of my methods/event handlers etc. Because they are used by lots of different user controls. The user controls are loaded into the page dynamically when they page is built. I have managed to assign them IDs when I load each control.
My ignorance starts to show when I am trying to access controls inside updatepanels inside user controls that have been dynamically loaded. I know there is a Controls Collection but when I try to recursively look through the collection to find a control I get errors.
The second problem I am having is that I have set my updatepanels inside each control to conditional. I want to an event in one user control to trigger an update in all the updatepanels. But these updatepanels are inside user controls that are positioned randomly on the page.
I need to find a way to access controls and updatepanels without using long strings of FindControl.
Any small examples to point me in the right direction would be appreciated.
Controls burried under somthing else will need to be fished out the same way you burried them
FormView viewFC1 = (FormView)this.FindControl("UpdatePanelFC").FindCo ntrol("DetailsViewFC1");
from that I presume UpdatePanelFc is not a dynamically created control
you can shorten that piece of code using by
- FormView viewFC1 = (FormView)thisUpdatePanelFC.FindControl("DetailsViewFC1");
cheers