GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET 2.0
Go To First  |  Previous Question  |  Next Question 
 ASP.NET 2.0  |  Question 88 of 161    Print  
what is event bubbling?

  
Total Answers and Comments: 6 Last Update: June 10, 2009     Asked by: mdchaus 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: venkat.locharla
 
    Event Bubbling is nothing but events raised by child controls is handled by the parent control. Example: Suppose consider datagrid 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 handlde the click events of the child link button events.This is the answer already written by one of our friend....

Above answer was rated as good by the following members:
gurucharan.crm
December 09, 2005 23:18:21   #1  
Mahesh        

RE: what is event bubbling?
Event Bubbling is nothing but events raised by child controls is handled by the parent control. Example: Suppose consider datagrid 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 handlde the click events of the child link button events.Parent can know which child actaully triggered the event.That thru arguments passed to event routine. Happy programming
 
Is this answer useful? Yes | No
March 27, 2006 14:31:32   #2  
rashid Member Since: March 2006   Contribution: 7    

RE: what is event bubbling?

Some user controls are entirely self contained for example a user control displaying current stock quotes does not need to interact with any other content on the page. Other user controls will contain buttons to post back. Although it is possible to subscribe to the button click event from the containing page doing so would break some of the object oriented rules of encapsulation. A better idea is to publish an event in the user control to allow any interested parties to handle the event.

This technique is commonly referred to as event bubbling since the event can continue to pass through layers starting at the bottom (the user control) and perhaps reaching the top level (the page) like a bubble moving up a champagne glass.


 
Is this answer useful? Yes | No
December 15, 2006 06:21:41   #3  
hakkim        

give any realtime example for interface/abstract class

I no the defenition for interface and abstract class

but i want a one real time example for this 2 question.

many intrview ask the same question.


 
Is this answer useful? Yes | No
June 07, 2007 10:58:11   #4  
s.jabee Member Since: June 2007   Contribution: 4    

Pratical usage of Abstract class and interface
Interface - can be used as a medium for casting objects at runtime much more useful when dealing with design pattern that deal with delegation [ composition].

Abstract class : primarily base classes. Business entity base class etc.

 
Is this answer useful? Yes | No
June 07, 2007 11:02:59   #5  
s.jabee Member Since: June 2007   Contribution: 4    

RE: what is event bubbling?
  • Interface : Much more useful in composition (Delegation approach of programming)Objects are accessed solely through their interfaces.:
  • Abstract Classes: Basically used as base class. for instance business entity base class.


 
Is this answer useful? Yes | No
June 10, 2009 11:23:33   #6  
venkat.locharla Member Since: June 2009   Contribution: 2    

RE: what is event bubbling?
Event Bubbling is nothing but events raised by child controls is handled by the parent control. Example: Suppose consider datagrid 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 handlde the click events of the child link button events.This is the answer already written by one of our friend....
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape