ASP .NET 2.0 Simple Tricks ( III )
Fill all textbox in page with empty string, you can also do the same tricks with other web server controls :
Dim xForm As Control = _
Page.FindControl("form1")
For Each ctl As Control _
In xForm.Controls
If ctl.GetType().ToString(). _
Equals("System.Web.UI." & _
"WebControls.TextBox") Then
CType(ctl, TextBox).Text = ""
End If
Next ctl