C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
7
Reply
what is mean by event bubbling in ASP.net
Avinash Aher
11y
20k
1
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
For every control in asp.net there are some pre defined events which could be handled for example let us take a button which has an OnClick() event when ever a single click is made to that button that event raises.But if that particular button is in any of the following Server controls like GridView,Repeater,DataList etc . We cannot retrieve the button onClick() event directly. For that let us consider we have the same button in GridView.Here Button is the child control where as the parent control is our Gridview. These child controls do not raise by themselves when they are inside any server controls , they pass the event to the container parent and from then it is passed to our page as "ItemCommand". From the code behind we cann access button onclick event now with that ItemCommand Event of Parent control.This process of sending the child control events to parent control is said to be Event Bubbling.For more details you can check below link http://aspdotnetcodebook.blogspot.com/2009/11/event-bubbling-in-aspnet.html
Abhay Shanker
11y
3
Go through thathttp://www.c-sharpcorner.com/Forums/Thread/159341/event bubbling means -- suppose u have gridview and in that gridview you take checkbox .when you clicked on checkbox that event pass to the parent means gridview
Dnyaneshwar Babar
11y
1
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.
Shraban
10y
0
When Parent control contains child controls. when events occurred in child controls ,the event is bubbled to the parent control.This is called event bubbling.
Roymon TP
11y
0
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.For Example Grid Control
When you Select Dropdown value is its autopost back property True then the event of child control call its calling Event bubbling .
Munesh Sharma
11y
0
Event bubbling means event propogation from child control to it's parent container. It 's not related to only c# or .net. Event bubling is present in javascript as well , please refer this link for details http://javascript.info/tutorial/bubbling-and-capturing
Swaraj Patil
11y
0
http://msdn.microsoft.com/en-us/library/aa719644(v=vs.71).aspx
Pankaj Bajaj
11y
0
Message