private void ListControlCollections() { ArrayList controlList = new ArrayList(); AddControls(Page.Controls, controlList); foreach (string str in controlList) { // Response.Write(str + “<br/>”); cbx_control.Items.Add(str); } Response.Write(“Total Controls:” + controlList.Count); } private void AddControls(ControlCollection page, ArrayList controlList) { foreach (Control c in page) { if (c.ID != null) { controlList.Add(c.ID); } if (c.HasControls()) { AddControls(c.Controls, controlList); } … Read More “Finding All Controls on Page in Asp.net” »