Better way to find control in ASP.NET
If you’re looking for a specific type of control you could use a recursive loop like this one – http://weblogs.asp.net/eporter/archive/2007/02/24/asp-net-findcontrol-recursive-with-generics.aspx Here’s an example I made that returns all controls of the given type /// <summary> /// Finds all controls of type T stores them in FoundControls /// </summary> /// <typeparam name=”T”></typeparam> private class ControlFinder<T> where … Read more