Test Menu

  • Commentary
  • Deals
  • Coupons

Nov 4, 2011

Clear All Textboxes on a Web Form

For Each ctrl As Control In Form.Controls
    If ctrl.GetType.Name = "TextBox" Then 
        Dim tb As TextBox = ctrl tb.Text = String.Empty
    End If 
 Next

No comments:

Post a Comment