|
|
How to traverse or loop controls? |
|
|
AspAlliance.com |
|
|
ASP.NET / Component & Controls |
|
|
Click to Visit |
|
|
20 |
|
In this article the author discusses about how to traverse all the subcontrols of a root control in the webforms. In this article the author shows how to create a custom class which stores the details such as ID, Type and TypeName of the subcontrols using the TraverseControls method of the base class ControlUtil that returns an array of ControlInfo objects with a sample program. The author also shows you the ouput of this program.
|