LINQ – The Uber FindControl
March 21, 2008 by kerrysoft and tagged , API, CRM software, ERP solution, Web
Also see: Blogs at work With a simple extension method to ControlCollection to flatten the control tree you can use LINQ to query the control tree: public static class PageExtensions { public static IEnumerable<Control> All(this ControlCollection controls) { foreach (Control control in controls) { foreach (Control grandChild in control.Controls.All()) yield return grandChild; yield return control; [...]
Posted in Technology | No Comments »
