请编程遍历页面上所有TextBox控件并给它赋值为string.Empty?
摘要:
webForm:foreach (Control control in this.Form.Controls) { if (control is System.Web.UI.WebControls.TextBox) { TextBox tb= (TextBox)control; tb.Text = ""; } }winform:foreach (System.Windows.Forms.Contr... 阅读全文
posted @ 2010-09-08 21:18 竹林雨季 阅读(543) 评论(0) 推荐(0) 编辑