NumericPagerField.HandleEvent(CommandEventArgs) Método
Definição
Manipula os eventos que ocorrem no objeto NumericPagerField e executa a ação apropriada.Handles events that occur in the NumericPagerField object 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)
Parâmetros
Os dados do evento.The event data.
Comentários
O HandleEvent método é um método auxiliar.The HandleEvent method is a helper method. Ele é usado pelo DataPager.OnBubbleEvent método para manipular eventos que ocorrem no NumericPagerField objeto quando um dos botões dentro do controle é clicado.It is used by the DataPager.OnBubbleEvent method to handle events that occur in the NumericPagerField object when one of the buttons inside the control is clicked.
O HandleEvent método examina a CommandName Propriedade do CommandEventArgs objeto contido no e parâmetro e, em seguida, executa a ação apropriada.The HandleEvent method examines the CommandName property of the CommandEventArgs object that is contained in the e parameter, and then performs the appropriate action.
A tabela a seguir lista os botões fornecidos pelo NumericPagerField objeto e a ação executada quando o botão é clicado.The following table lists the buttons provided by the NumericPagerField object and the action that is performed when the button is clicked.
| BotãoButton | Valor de CommandNameCommandName value | AçãoAction |
|---|---|---|
| NúmeroNumber | Número da páginaPage number | Navega até a página de dados correspondente.Navigates to the corresponding page of data. |
| Página anteriorPrevious page | DataControlCommands.PreviousPageCommandArgument | Exibe o conjunto anterior de números de página e navega até a última página de dados nesse conjunto.Displays the previous set of page numbers and navigates to the last page of data in that set. |
| Próxima páginaNext page | DataControlCommands.NextPageCommandArgument | Exibe o conjunto anterior de números de página e navega até a primeira página de dados nesse conjunto.Displays the previous set of page numbers and navigates to the first page of data in that set. |