- 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;
- }
- }
- function BianLi()
- {
- var t=document.getElementsByTagName("input");
- for(var i=0;i<t.length && t[i];++i)
- {
- if(t[i].type=="text")
- {
- t[i].value="";
- }
- }
- }
复制代码 |