Why don child control events trigger OnBubbleEvent?
I have a control which contains a collection of another control. The members of the collection can contain child controls themselves, but these aren’t coded. They are merely added between the start and end tags of the child controls in the HTML view. If I put a button (for instance) inside one of the child controls, the button’s click event causes a postback, but then seems to disappear entirely. I tried looking at OnBubbleEvent in the child control and in the parent control. Those events are never called. Nor does the button’s click event in the page containing the control ever get called. Is there a way to capture events of such child controls? I get the feeling that these child controls aren’t being added to the control hierarchy of the parent control, but they are visible when I do ParentControl.ChildrenControls(idx).Controls(idx2), so maybe they are in the control hierarchy. I’m completely stumped here, and I’d appreciate any suggestions.