(ASP.NET 2.0 W2003)
I've written a templated databound custom control which works. Except.
If I put a control (such as a LinkButton) in one of the templates, then no
event is bubble up when it is clicked.
the control is added to teh control tree (apparently correctly).
If I add the 'same' control to the Controls collection in code then the
event bubbling works correctly.
However if instead I add the control to the Controls collection of the
Container for the template (the one which I call InstatiateIn on) then,
though the control is present, no events are bubbled up. The OnEventBubble
is not called in teh container either.
In short, when I add an ASP.NET control to a templated container (thorugh
the template or code), events do not bubble. If I added in the root of the
control tree, they do.
As far as I read, this should just work. But obviously, I'm missing
something!
Iain
--
Iain Downs (DirectShow MVP)
Commercial Software Therapist
www.idcl.co.uk
Good luck,
Alessandro Zifiglio
"Iain" <Ia...@idclTAKEAWAY.co.uk> ha scritto nel messaggio
news:wkhdrnn2o16w$.ym1etx56lp8o.dlg@40tude.net...