0

I have to perform a common validation task on each control on a lightswitch page such that when a user interacts with the control then a another control on the page is cleared. I have no idea how to iterate the controls on the page without calling

 this.FindControl("MyId")

For each individual control and then setting up a handler on ControlAvailable and then get the control and bind to the correct event so that I can do something somewhere else on the page.

Is there a way to loop all controls and test for presence of the type TextBox rather than looking having to find each control by name explicitely?

Exitos
  • 29,230
  • 38
  • 123
  • 178

1 Answers1