แก้ไข

แชร์ผ่าน


TemplatePagerField.HandleEvent(CommandEventArgs) Method

Definition

Handles events that occur in the TemplatePagerField 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)

Parameters

e
CommandEventArgs

The event data.

Remarks

The HandleEvent method is a helper method. It is used by the DataPager.OnBubbleEvent method to handle events that occur in the TemplatePagerField object when a button inside the control is clicked.

The HandleEvent method invokes the OnPagerCommand method and examines the DataPagerCommandEventArgs.NewStartRowIndex property. If DataPagerCommandEventArgs.NewStartRowIndex has changed, this method invokes the DataPager.SetPageProperties method to update the page properties of the DataPager control.

Applies to

See also