Technorati Tags:
ASP.NET,
C#
I've come across a lot of times when I wish I could just use the standard FindControl method on a Page or on a container control and have it be found without having to make sure that the control was a direct child of my current container. Also, I wish I could find all controls of a particular type on a page. Why couldn't the Control class be given these gems out of the box? Well, thanks to extension methods, custom iterators and a dash of linq, I've built my own Control Finding mechanism that gives a broader search and adds some type safety to the mix.
More...