Click here to Skip to main content
15,909,030 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
What is EVENT BUBBLING in ASP.net?
Posted
Comments
shwetadeo 23-Jul-14 3:09am    
Can anyone explain with code sample?

Hello ,

Event bubbling is used by the data-bound controls (Repeater, DataList, and DataGrid) to expose command events raised by child controls (within item templates) as top-level events. While ASP.NET server controls in the .NET Framework use event bubbling for command events (events whose event data class derives from CommandEventArgs), any event defined on a server control can be bubbled.



You can find more information on MSDN site and for that follow the link:

http://msdn.microsoft.com/en-us/library/aa719644%28v=vs.71%29.aspx
 
Share this answer
 
<b>Event Bubbling is nothing but events raised by child controls is handled by the parent control. Example: Suppose consider grid view as parent control in which there are several child controls.There can be a column of link buttons right.Each link button has click event.Instead of writing event routine for each link button write one routine for parent which will handle the click events of the child link button events.</b>
 
Share this answer
 
Event bubbling enables events to be raised from a more convenient location in the controls hierarchy and allows event handlers to be attached to the original control as well as to the control that exposes the bubbled event.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900