What is event bubbling in .NET?
Rakesh Singh
The passing of the control from the child to the parent is called as bubbling. Controls like Data Grid, Datalist, Repeater, etc can have child controls like List box, etc inside them. An event generated is passed on to the parent as an Item Command.
Handling(tracking) child controls events (only button type child controls) through parent control in data bind controls known as event bubbling.Server controls like Datagrid, DataList, and Repeater can have other child controls inside them.Example DataGrid can have combo box inside datagrid. These child control do not raise there events by themselves, rather they pass the event to the container parent (which can be a datagrid, datalist, repeater), which passed to the page as "ItemCommand" event. As the child control send events to parent it is termed as event bubbling.
Simply calling a parent control's event from a child control is called Event bubbling. Handling child controls events through parent control in data bind controls known as event bubbling. Server controls like Datagrid, DataList, and Repeater can have other child controls inside them.Example DataGrid can have combo box inside datagrid. These child control do not raise there events by themselves, rather they pass the event to the container parent (which can be a datagrid, datalist, repeater), which passed to the page as "ItemCommand" event. As the child control send events to parent it is termed as event bubbling.
calling parent class events from chaild class event
The ASP.NET page framework provides a technique called event bubbling that allows a child control to propagate events up its containment hierarchy. It is attached to the original control as well as to the control that exposes the bubbled event. Event bubbling is basically used with Data-bound controls like: Repeater, DataList, DataGrid, GridView etc.