K
karthick raja
Am experiencing a problem intercepting the events from controls added
dynamically to a Placeholder control at runtime.
Is there any way that I can write an event handler on the page which will be
pick up the events raised by the added controls dynamically.
I cannot use 'WithEvents' and 'Handles' because this requires that the
controls be declared on the page and they aren't (they are created in the
external class)
I did think of using "AddHandler" in the external class, but this requires
that the Handling function be local to the code that adds the controls,
which it isn't(its in the calling page).
dynamically to a Placeholder control at runtime.
Is there any way that I can write an event handler on the page which will be
pick up the events raised by the added controls dynamically.
I cannot use 'WithEvents' and 'Handles' because this requires that the
controls be declared on the page and they aren't (they are created in the
external class)
I did think of using "AddHandler" in the external class, but this requires
that the Handling function be local to the code that adds the controls,
which it isn't(its in the calling page).