木棉

导航

2011年8月7日

页面遍历TextBox控件

摘要: 方法一: foreach (Control control in this.Form.Controls){ if (control.GetType() == typeof(TextBox)) { TextBox txtbox = new TextBox(); txtbox = (TextBox)this.Page.FindControl(control.ID); txtbox.Text = string.Empty; } }-------------------------------------------------------------------------------------- 阅读全文

posted @ 2011-08-07 16:29 木棉 阅读(281) 评论(0) 推荐(0)