D
David
My goal is to collect all the textboxes on a given page in code (or all
checkboxes).
The only way that I know how is traversing through the hierarchy and collect
them
Page
|__Controls
|____HtmlForm
|__text boxes found here
The trouble is controls are embedded in others such as user controls, panel,
table, datagrid, etc, in which case, I'd have to look in there to find them
and there is no way I can write code to cover every possible hierarchy and
chase them down. Is there a cleaner way of doing this? I suppose I can
write a recursive function to do this.
If on a given web form, I want to collect all textboxes. As simple as that,
but hierarchies can be pretty complex.
checkboxes).
The only way that I know how is traversing through the hierarchy and collect
them
Page
|__Controls
|____HtmlForm
|__text boxes found here
The trouble is controls are embedded in others such as user controls, panel,
table, datagrid, etc, in which case, I'd have to look in there to find them
and there is no way I can write code to cover every possible hierarchy and
chase them down. Is there a cleaner way of doing this? I suppose I can
write a recursive function to do this.
If on a given web form, I want to collect all textboxes. As simple as that,
but hierarchies can be pretty complex.