Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Asp.Net Programming

Help with controls on page


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

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/egoldin
http://usableasp.net

<gbjornh@gmail.com> wrote in message

news:1181192649.707784.164030@q66g2000hsg.googlegroups.com...

On Jun 7, 3:18 am, "Eliyahu Goldin"

Thanks.  Do you have an example, or a link, on how to loop recursively
thru the form?
Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc