摘要:
答: foreach (System.Windows.Forms.Control control in this.Controls) { if (control is System.Windows.Forms.TextBox) { System.Windows.Forms.TextBox tb = (System.Windows.Forms.TextBox)control ; tb.Text = String.Empty ; } }上边的方法只是针对于桌面软件类的,如果要针对于web开发中怎么实现呢?首先.aspx文件一定会包含一个:<form id="form1" 阅读全文