<REMOVEALLCAPITALSeEgGoldD
@mMvVpPsS.org> wrote:
> Controls collection includes only direct children. You should loop
> recursively to reach every control.
> --
> Eliyahu Goldin,
> Software Developer & Consultant
> Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net
> <gbjornh@gmail.com> wrote in message
> news:1181192649.707784.164030@q66g2000hsg.googlegroups.com...
> >I am trying to loop through all the controls on my webform to get it's
> > ID property. My eventual goal is going to be to reset the text of
> > specific contols.
> > Here is a piece of the code I am using, that I found searching through
> > Google:
> > Dim control As Control
> > For Each control In Me.Page.Controls
> > Response.Write("<BR>" + control.ID)
> > Next
> > Unfortunately, all I get returned is the name of my form such as
> > "frmIndex".
> > Anyone have any idea or, prefered, an example of what I need to do?
> > Thanks in advance- Hide quoted text -
>
Thanks. Do you have an example, or a link, on how to loop recursively