private Control FindControl(string controlName, Control control)
{
if (control != null)
{
if (control.Name == controlName)
return control;
foreach (Control child in control.Controls)
{
var t = FindControl(controlName, child);
if (t != null)
return t;
}
}
return null;
}