RaiseBubbleEvent can't find parent
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I have a templated composite control with the main parent control, a container control as its child control, and a button as the container control's child. When the button gets clicked, the event gets bubbled up to the container control but never up to the top parent. I checked the _parent value of the container control during OnBubbleEvent and the value is undefined... which is probably why the bubbling stops there. The strange thing is that the _parent value was defined when I added the container to the parent control. The value became undefined when I clicked the button. Any idea how to fix this? Thanks, Orange