Recursive Page.FindControl

Here’s one which is WAY better. First of all it’s a generic version, second of all it also has an addition PredicateT version, and there’s even one returning IEnumerableT too :wink:

Pretty cool, huuh…! :wink:

Thx, It helped me a lot


I am a bit of a rookie with ASP.Net Controls.
If I created a dynamicPanel (custom control) for AJAX updates and was trying to find it on a content panel (on a default page) tied to a
Master page. What would the root control be? (my panel is inherited from : Panel)

Thanks … .Tim

Nice post! My own FindControlRecursive helped me out many times. Especially, when I deal with MasterPages. For example, one of such usage is shown in my post here –
Thank you!