title: Iterate through textboxes in VB Web App
body: <p>There's a few answers to this sort of question, but none of them seem very clear to me and I have no experience with JQuery, so I'm asking here. </p>
  
  <p>I have a VB Web Application with a bunch of textboxes on it in Default.aspx (Using the basic template in Visual Web Designer 2010 Express). I'd like to iterate through those textboxes using some sort of VB solution if at all possible and clear them when the user presses a button. I've tried using something like this: </p>
  
  <pre><code>Dim cControl As Control
  For Each cControl in Me.Controls
      If cControl Is TextBox Then
          cControl.Text = ""
      EndIf
  Next
  </code></pre>
  
  <p>But this doesn't work. If anyone could point me in the right direction, that would be great. Thanks! </p>