摘要:
答: 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" 阅读全文
posted @ 2012-08-16 09:50
VincentZhu
阅读(2999)
评论(0)
推荐(1)
浙公网安备 33010602011771号