Blog - Microsoft .NET, ASP.NET, AJAX and more

Building A Better FindControl

by Damien White 4/3/2008 6:32:00 AM
Technorati Tags: ,


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...


Shout it kick it on DotNetKicks.com Bookmark and Share
Tags: , , ,
Categories: .NET | ASP.NET | C# | LINQ
Actions: E-mail | Permalink | Comments (2) | Comment RSSRSS comment feed