private void DumpControls(Control c, int depth) { //Usage sample: DumpControls(this.Page, 0); if (c.ID != null) { for (int a = 1; a < depth; a++) { Debug.Write(""); } Debug.WriteLine(c.ID, c.ToString()); } foreach (Control subControl in c.Controls) { DumpControls(subControl, depth + 1); } }It dumps a list of all instantiated control to the output window in debug mode.