The control hierchy is:
form
---> html grid layout panel
-------->> html table
---------->>> webctrl checkbox
The loop has 3 iterations, one having the form1 as an ID, the other two
having no ID at all. I even placed additional webctrl checkboxes on the
form itself - and they were not found in the controls collection....
I've played around with this a bit and if I place the checkboxes in a
webctrl panel I can successfully iterate via the panel1.controls
collection... so this is what I am going to do....
"Marina Levit [MVP]" <so*****@nospam.com> wrote in message
news:en**************@TK2MSFTNGP09.phx.gbl...
Are the checkboxes maybe in a container control?
"astro" <as***@bcmn.com> wrote in message
news:Ka******************@tornado.rdc-kc.rr.com...
I am not farmilar with the object model for webforms.
I want to loop through the web form controls - pulling out the checkboxes
on the form like the following:
For Each ctrl In Me.Controls
If TypeOf ctrl Is CheckBox Then
'do something here.....
End If
Next
This works fine with windows forms of course...
But completely misses the dozen web checkboxes I have on my web form. Is
there an alternative syntax for web forms? Please note that I am not
refering to html checkboxes but the web control checkboxes.
thanks.