#region empty all control contents on the specified page, the public static void Clearallcontent ()//////clears all control contents on the specified page, including Textbox,checkbox,checkboxlist,ra
Diobutton,radiobuttonlist. But not clear///in addition to such as listbox,dropdownlist, because such a control value for the current page can also be used, generally these controls are saved dictionary data.
Author:kevin///Date: 2004-12-02//////specified page public static void Clearallcontent (System.Web.UI.Control page) { int npagecontrols = page.
Controls.Count;
for (int i = 0;
i < Npagecontrols; i++) {foreach (System.Web.UI.Control control in page). Controls[i]. Controls) {if (control).
Hascontrols ()) {Clearalltext (control); else {if (Control's TextBox) (Control as TextBox).
Text = ""; if (control's CheckBox) (Control as CheckBox).
Checked = false; If (Control are RadioButtonList) (control as RadioButtonList).
SelectedIndex =-1; If (Control are RadioButton) (control as RadioButton).
Checked = false; If (control are CheckBoxList) {foreach (ListItem item in (Control as CheckBoxList) ). Items) {Item.
Selected = false; The}}}}} #endregi