DataPagerField Class
Serves as the base class for data pager field types, which represent a navigation control for the DataPager control.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The DataPagerField class serves as the base class for all data pager field types. Data pager fields are used by the DataPager control to represent a navigation control.
Use the classes that are derived from DataPagerField to select which type of pager is displayed in the DataPager control. The following table lists available data pager field types.
Pager field type | Description |
|---|---|
Lets users navigate through data pages one page at a time, or to jump to the first or last page. | |
Lets users select a page by page number. | |
Lets page developers create a custom paging UI. |
You can derive from the DataPagerField class to create additional pager field types.
Notes to Inheritors:When you inherit from the DataPagerField class, you must override the following members:
The following example shows how to use NextPreviousPagerField, NumericPagerField, and TemplatePagerField objects to display page navigation controls in a DataPager control. The objects are derived from the DataPagerField class.
- 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.Web.UI.WebControls::DataPagerField
System.Web.UI.WebControls::NextPreviousPagerField
System.Web.UI.WebControls::NumericPagerField
System.Web.UI.WebControls::TemplatePagerField
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.