Hi,
I need to generate a custom script for every input control (textbox,
listboxes etc) in an aspx page. That is why I need to know what input
web controls exist in a given aspx page. I would be writing C# code to
parse the aspx file to get this info.
Hope it is clear,
thanks,
Arun
Why not recursively walk though the Controls collection, find all input
controls and act on them? You should do this somewhere before the
"Render" event.
You could also use ParseControl to let asp.net parse the aspx file (and
then loop though all controls yourself), but I'm not sure all the
client-side IDs will be the same as in the "real" page (which is what
you would need).
Hans Kesting