递归输出ASP.NET页面所有控件的类型和ID
摘要:private void DisplayAllControl(Control control, int step) { foreach (Control ctl in control.Controls) { string s = new string('-', step * 4) + ctl.GetType().Name + "〈" + ctl.ID + "〉"; Response.Write(s + "<br/>"); if (ctl.HasControls()) DisplayAllControl(ct
阅读全文
posted @
2012-08-23 10:03
luck510
阅读(155)
推荐(0)