FormView.OnBubbleEvent Method (Object, EventArgs)
Handles an event passed up through the control hierarchy.
Assembly: System.Web (in System.Web.dll)
Protected Overrides Function OnBubbleEvent ( source As Object, e As EventArgs ) As Boolean
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 NIB: 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.
Available since 2.0