J
Jordan S.
Is FindControl() really the *only* way to later get a reference to controls
that are dynamically added to a page?
I am currently using ParseControl to insert a bunch of controls into a
WebForm (which is itself dynamically inserted into the page).
In subsequent code I do in fact know the ID of one of the controls added
earlier via ParseControl. I would like to get a reference to that control
via it's ID (perhaps qualified by it's naming container) and not have to use
FindControl. But from all the googling I have done, it appears that my only
alternative is to use FindControl - which is expensive and, IMHO unnecessary
given that I already know the naming container in which the control exists.
Do I have any alternatives to FindControl() ?
Thanks.
that are dynamically added to a page?
I am currently using ParseControl to insert a bunch of controls into a
WebForm (which is itself dynamically inserted into the page).
In subsequent code I do in fact know the ID of one of the controls added
earlier via ParseControl. I would like to get a reference to that control
via it's ID (perhaps qualified by it's naming container) and not have to use
FindControl. But from all the googling I have done, it appears that my only
alternative is to use FindControl - which is expensive and, IMHO unnecessary
given that I already know the naming container in which the control exists.
Do I have any alternatives to FindControl() ?
Thanks.