清空所有textbox
public void EmptyTextBox(ControlCollection controls) { foreach (Control c in controls) { if (c.Controls.Count > 0) { // 递归 this.EmptyTextBox(c.Controls); } else if (c is TextBox) { // 服务器控件 ((TextBox)c).Text = ""; } else if (c is HtmlInputText) { // HTML 控件 ((HtmlInputText)c).Value = ""; } } }