Recursive Goodness - II
Monday, October 15th, 2007
Find a control within a control recursively:
protected void Control FindControlRecursive(Control Root, string Id)
{
if (Root.ID == Id)
return Root;
foreach (Control Ctl in Root.Controls)
{
Control FoundCtl = FindControlRecursive(Ctl, Id);
[…]







