internal Control FindChildControl(string strid, Control ct)
{
if (ct.ID == strid)
{
return ct;
}
else
{
if (ct.HasControls())
{
foreach (Control ctchild in ct.Controls)
{
Control ctrtn = FindChildControl(strid, ctchild);
if (ctrtn != null)
{
return ctrtn;
}
}
return null;
}
else
{
return null;
}
}
}