For Each c As Control In fr
If c.ToString.Equals("System.Web.UI.WebControls.TextBox") Then
CType(c, TextBox).Text = ""
End If
If c.ToString.Equals("System.Web.UI.WebControls.DropDownList") Then
CType(c, DropDownList).ClearSelection()
End If
Next
If c.ToString.Equals("System.Web.UI.WebControls.TextBox") Then
CType(c, TextBox).Text = ""
End If
If c.ToString.Equals("System.Web.UI.WebControls.DropDownList") Then
CType(c, DropDownList).ClearSelection()
End If
Next