DataPagerCommandEventArgs Class
Provides data for the PagerCommand event of the TemplatePagerField class.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The TemplatePagerField object raises the PagerCommand event when a Button, LinkButton, or ImageButton control that is inside the pager field is clicked. These buttons are child controls that can be defined in the PagerTemplate template of a TemplatePagerField field.
During the event, you can perform tasks such as changing the number of rows that will be displayed or changing the index of the first item on the page.
For more information about how to handle events, see Consuming Events.
For a list of initial property values for an instance of the DataPagerCommandEventArgs class, see the DataPagerCommandEventArgs constructor.
The following example shows how to use the DataPagerCommandEventArgs object to enable the user to specify which page of data will be displayed in the ListView control. The DataPagerCommandEventArgs object is passed to the handler for the PagerCommand event of the TemplatePagerField class.
Security Note: |
|---|
This example contains a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview. |
- AspNetHostingPermission
for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal
- AspNetHostingPermission
for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal
System::EventArgs
System.Web.UI.WebControls::CommandEventArgs
System.Web.UI.WebControls::DataPagerCommandEventArgs
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Security Note: