/* * This work is licensed under the Creative Commons Attribution 2.5 License. * To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ * or send a letter to Creative Commons, 543 Howard Street, 5th Floor, * San Francisco, California, 94105, USA. * * Original developer: David Betz * */ using System; using System.Collections.Generic; using System.Text; using System.Web.UI; namespace DataFeedFramework.Web.Controls.Support { public static class WebSupport { public static Control RecursiveFindControl(Control container, String name) { Control control = container.FindControl(name); if (control != null) { return control; } if (container.NamingContainer != null) { return RecursiveFindControl(container.NamingContainer, name); } return null; } } }