T
TR
I have an aspanel that contains a variety of controls, including
checkboxes and HtmlGenericControls. I can find the panel in codebehind using
FindControl(id), but then I want to either:
a) iterate all of the controls in the panel's Controls collection and, if
the control is a checkbox ..., or
b) find only the checkboxes in the panel and iterate through them
Using approach a) how do I determine if the current control is a checkbox?
Dim Crtl as System.Web.UI.Control
For Each Ctrl in MyPanel.Controls
If Ctrl ....
Is b) possible server-side? Is there a Find By Control Type?
Thanks for the help.
TR
checkboxes and HtmlGenericControls. I can find the panel in codebehind using
FindControl(id), but then I want to either:
a) iterate all of the controls in the panel's Controls collection and, if
the control is a checkbox ..., or
b) find only the checkboxes in the panel and iterate through them
Using approach a) how do I determine if the current control is a checkbox?
Dim Crtl as System.Web.UI.Control
For Each Ctrl in MyPanel.Controls
If Ctrl ....
Is b) possible server-side? Is there a Find By Control Type?
Thanks for the help.
TR