标签归档:遍历

遍历页面上的所有控件

/// <summary>         /// 采用递归的方法来遍历页面控件         /// </summary>         /// <param name=”parent”></param>         protected void ErgodicChildrenControls(Control parent)         {                         foreach (Control c in parent.Controls)             {                //此处写有关控件的代码,例如                   /......[阅读全文]