Controls collection includes only direct children. You should loop
recursively to reach every control.

Signature
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
On Jun 7, 3:18 am, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.org> wrote:
> Controls collection includes only direct children. You should loop
> recursively to reach every control.
[quoted text clipped - 29 lines]
>
> - Show quoted text -
Thanks. Do you have an example, or a link, on how to loop recursively
thru the form?
bruce barker - 07 Jun 2007 16:45 GMT
writeControlIds(Page);
void writeControlIds(Control pc)
{
foreach (Control c in pc)
{
Response.Write(c.ID + "<br />");
writeControlIds(c);
}
}
-- bruce (sqlwork.com)
> On Jun 7, 3:18 am, "Eliyahu Goldin"
> <REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.org> wrote:
[quoted text clipped - 27 lines]
> Thanks. Do you have an example, or a link, on how to loop recursively
> thru the form?