Sure, but you would want to use a recursive function to do this ideally, as
you may have nested Controls. Every Control has a Controls Collection, which
you can, of course, loop through. So, you create a function that takes a
Control as a parameter, loops through each of the Controls in its Controls
Collection, and calls itself for each Control.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven
"Oleg" <Ol**@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
Let's say I rendered a bunch of controls with the same name and different
IDs.
On postback, can I somehow iterate through these controls (checkboxes in
this case, but could be dropdown controls in the future) and get their
values
and IDs
with all this done in the code behind page?
A small example would be appreciated.
Thanks,
Oleg