par
marwa khalaf , .Net Developer , Sands National Academy
You can easily traverse all controls on a form via the Web Form’s Controls collection. The GetType method can be used on each control to determine its type and how to work with it. Now, it gets tricky because the form contains a tree of controls; that is, some controls are contained within others (think of a Table). You would have to recursively loop through the controls to make sure everything is processed.