Does anyone know a technique that I could use to iterate my way through an asp.net form.
What I'm trying to do is go through all of the elements on the form and get their id's so I can pass them on as a paramter to something else.
Many thanks:cool:
Printable View
Does anyone know a technique that I could use to iterate my way through an asp.net form.
What I'm trying to do is go through all of the elements on the form and get their id's so I can pass them on as a paramter to something else.
Many thanks:cool:
u can loop through the page.controls collection to get all the id's contained in the page, but i doubt it would pick up controls contained in other containers, such as a table, panel etc.