DataPagerField Class
Serves as the base class for data pager field types, which represent a navigation control for the DataPager control.
System.Web.UI.WebControls::DataPagerField
System.Web.UI.WebControls::NextPreviousPagerField
System.Web.UI.WebControls::NumericPagerField
System.Web.UI.WebControls::TemplatePagerField
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The DataPagerField type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DataPager | Gets a reference to the data pager that the DataPagerField object is associated with. |
![]() | IsTrackingViewState | Gets a value that indicates whether the DataPagerField object is tracking its view-state changes. |
![]() | QueryStringHandled | Gets or sets a value that indicates whether the query string field has been evaluated. |
![]() | QueryStringValue | Gets the value of the query string field from the URL of the request. |
![]() | ViewState | Gets a dictionary of state information that enables you to save and restore the view state of a DataPagerField object across multiple requests for the same page. |
![]() | Visible | Gets or sets a value that indicates whether a data pager field is rendered. |
| Name | Description | |
|---|---|---|
![]() | CloneField | Infrastructure. Creates a copy of the current object that is derived from DataPagerField. |
![]() | CopyProperties | Copies the properties of the current object derived from DataPagerField to the specified DataPagerField object. |
![]() | CreateDataPagers | When overridden in a derived class, creates the user interface (UI) controls for the data pager field object and adds them to the specified container. |
![]() | CreateField | When overridden in a derived class, creates an empty object that is derived DataPagerField. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetQueryStringNavigateUrl | Creates a URL that contains a query string field that has the specified page number. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | HandleEvent | When overridden in a derived class, handles events that occur in the data pager field object. |
![]() | LoadViewState | Restores view-state information that was saved previously. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnFieldChanged | Raises the FieldChanged event. |
![]() | SaveViewState | Saves the changes that were made to the DataPagerField object's view state. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | TrackViewState | Causes the DataPagerField object to track changes to its view state so that they can be stored in the control's ViewState property and persisted across requests for the same page. |
| Name | Description | |
|---|---|---|
![]() ![]() | IStateManager::IsTrackingViewState | Infrastructure. Gets a value that indicates whether the DataPagerField object is tracking its view-state changes. |
![]() ![]() | IStateManager::LoadViewState | Infrastructure. Restores view-state information that was saved previously. |
![]() ![]() | IStateManager::SaveViewState | Infrastructure. Saves the changes that were made to the DataPagerField object's view state. |
![]() ![]() | IStateManager::TrackViewState | Infrastructure. Causes the DataPagerField object to track changes to its view state so that they can be stored in the control's ViewState property and persisted across requests for the same page. |
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 InheritorsWhen 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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.






