Hi,
Public Sub ClearTextBox(ByVal root As Control)
For Each ctrl As Control In root.Controls
ClearTextBox(ctrl)
If TypeOf ctrl Is TextBox Then
CType(ctrl, TextBox).Text = String.Empty
End If
if typeof ctrl is DropDownList Then
cType(ctrl,DropDownList).SelectedIndex=0
End IF
Next ctrl
End Sub
Protected Sub btnClear_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnClear.Click
ClearTextBox(Me)
End Sub