- #region 清除
- protected void btnClear_Click(object sender, EventArgs e)
- {
- foreach (Control ctl in this.Controls)
- {
- this.txtClear(ctl);
- }
- }
- #endregion
- private void txtClear(Control ctls)
- {
- if(ctls.HasControls())
C#一次性清空TextBox或者将某一类控件置某一状态
最新推荐文章于 2024-05-04 21:41:08 发布