NextPreviousPagerField.HandleEvent(CommandEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Handles events that occur in the NextPreviousPagerField control and performs the appropriate action.
public:
override void HandleEvent(System::Web::UI::WebControls::CommandEventArgs ^ e);
public override void HandleEvent (System.Web.UI.WebControls.CommandEventArgs e);
override this.HandleEvent : System.Web.UI.WebControls.CommandEventArgs -> unit
Public Overrides Sub HandleEvent (e As CommandEventArgs)
Parameters
The event data.
Remarks
The HandleEvent method is a helper method that is used by the DataPager.OnBubbleEvent method. It is called to handle events that occur in the NextPreviousPagerField object when one of the buttons inside the control is clicked.
The HandleEvent method examines the CommandName property of the CommandEventArgs object that is contained in the e
parameter, and then performs the appropriate action.
The following table lists the buttons that are provided by the NextPreviousPagerField control and the action that is performed when the button is clicked.
Button | CommandName value | Action |
---|---|---|
First page | DataControlCommands.FirstPageCommandArgument | Navigates to the first page of data. |
Previous page | DataControlCommands.PreviousPageCommandArgument | Navigates to the previous page of data. |
Next page | DataControlCommands.NextPageCommandArgument | Navigates to the next page of data. |
Last page | DataControlCommands.LastPageCommandArgument | Navigates to the last page of data. |