NextPreviousPagerField.HandleEvent(CommandEventArgs) Método
Definição
Trata os eventos que ocorrem no controle NextPreviousPagerField e executa a ação apropriada.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)
Parâmetros
Os dados do evento.The event data.
Comentários
O HandleEvent método é um método auxiliar que é usado pelo DataPager.OnBubbleEvent método.The HandleEvent method is a helper method that is used by the DataPager.OnBubbleEvent method. Ele é chamado para manipular eventos que ocorrem no NextPreviousPagerField objeto quando um dos botões dentro do controle é clicado.It is called to handle events that occur in the NextPreviousPagerField 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 que são fornecidos pelo NextPreviousPagerField controle e a ação que é executada quando o botão é clicado.The following table lists the buttons that are provided by the NextPreviousPagerField control and the action that is performed when the button is clicked.
| BotãoButton | Valor de CommandNameCommandName value | AçãoAction |
|---|---|---|
| Primeira páginaFirst page | DataControlCommands.FirstPageCommandArgument | Navega para a primeira página de dados.Navigates to the first page of data. |
| Página anteriorPrevious page | DataControlCommands.PreviousPageCommandArgument | Navega para a página de dados anterior.Navigates to the previous page of data. |
| Próxima páginaNext page | DataControlCommands.NextPageCommandArgument | Navega para a próxima página de dados.Navigates to the next page of data. |
| Última páginaLast page | DataControlCommands.LastPageCommandArgument | Navega para a última página de dados.Navigates to the last page of data. |