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. |
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈