P
Paul D. Fox
I want to be able to loop through all the TextBoxes on a page and clear
their values. How can I write a function to do that?
their values. How can I write a function to do that?
Paul said:I want to be able to loop through all the TextBoxes on a page and clear
their values. How can I write a function to do that?
Paul D. Fox said:I want to be able to loop through all the TextBoxes on a page and clear
their values. How can I write a function to do that?
For Each myControl As Control In Page.Controls
If TypeOf myControl Is TextBox Then
CType(myControl, TextBox).Text = String.Empty '(or "")
End If
Next myControl
Lisa
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.