Handles an event passed up through the control hierarchy.
Assembly: System.Web (in System.Web.dll)
- Type: System.Object
The source of the event.
Return ValueType: System.Boolean
true to indicate the event should be passed further up the control hierarchy; otherwise, false.
The Control.OnBubbleEvent method is used by the control to optionally handle events passed up through the control hierarchy by the RaiseBubbleEvent method. It determines whether to handle an event by examining the properties of the EventArgs object contained in the e parameter. When an event needs to be handled, the method performs the appropriate action. Other events are ignored and passed up the control hierarchy. This method indicates whether to pass the event further up the control hierarchy through its return value.
The FormView control overrides the base implementation of this method to perform the appropriate action when one of the buttons recognized by the control is clicked. The following table lists the command buttons that the FormView control recognizes.
Used in paging operations to represent a button in the pager row that performs paging. To specify the paging operation, set the CommandArgument property of the button to "Next", "Prev", "First", "Last", or the index of the page to which to navigate. Raises the PageIndexChanging and PageIndexChanged events.
This version of the method returns true when one of these buttons is handled. For more information about event bubbling, see Events and Delegates.Notes to Inheritors:
When extending the FormView class, you can override this method to handle your own events. Make sure to use the return value to indicate whether the event should be passed further up the control hierarchy.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.