Event Bubbling in C#.Net
the repeater can do more than just displaying data. it can contain some other controls in the itemtemplate. all these controls are called child controls to the parent control the repeater (or anyother container) when the child raises an event the parent can handle that event which is called eventbubbling.
datalist,datagrid also support event bubbling.
this is a better approach because its difficult to for each individual child control to have its own eventhandlers
now everthing is taken care of the parent or the container control.
No comments:
Post a Comment