Title / Description
Code private Control FindControl(ControlCollection controlCollection, string ID) { foreach (Control control in controlCollection) { if (control.ID!=null && control.ID.Contains(ID)) return control; if (control.Controls != null && control.Controls.Count > 0) { Control retctl = FindControl(control.Controls, ID); if (retctl!=null) return retctl; } } return null; }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code