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