I've used a Ajax UpdatePanel in one of the web forms and just want to clear all TextBoxes content which are in UpdatePanel.I've made sub below, however it dosen't work properly.Please help. Public Sub ClearPanel(ByVal ctrl As UpdatePanel)
For Each c As Control In ctrl.Controls
If TypeOf c Is UpdatePanel Then ClearPanel(c)
If TypeOf c Is TextBox Then CType(c, TextBox).Text = ""
If TypeOf c Is DropDownList Then CType(c, DropDownList).SelectedIndex = 0
View Complete Post