PagerSettings.Mode Property
Assembly: System.Web (in system.web.dll)
/** @property */ public PagerButtons get_Mode () /** @property */ public void set_Mode (PagerButtons value)
public function get Mode () : PagerButtons public function set Mode (value : PagerButtons)
Not applicable.
Property Value
One of the PagerButtons values. The default is PagerButtons.Numeric.Controls that support pagination provide multiple modes in which to display the paging controls. Use the Mode property to specify the mode. The following table describes the different modes for pagination controls.
| Mode | Description |
|---|---|
| Previous-page and next-page buttons. | |
| Previous-page, next-page, first-page, and last-page buttons. | |
| Numbered link buttons to access pages directly. | |
| Numbered and first-link and last-link buttons. |
When the Mode property is set to the NextPrevious, NextPreviousFirstLast, or NumericFirstLast value, you can specify custom text for the non-numeric buttons by setting the properties shown in the following table.
| Property | Description |
|---|---|
| Text for the first-page button. | |
| Text for the previous-page button. | |
| Text for the next-page button. | |
| Text for the last-page button. |
As an alternative, you can also display images for the non-numeric buttons by setting the properties shown in the following table.
| Property | Description |
|---|---|
| The URL to an image to display for the first-page button. | |
| The URL to an image to display for the previous-page button. | |
| The URL to an image to display for the next-page button. | |
| The URL to an image to display for the last-page button. |
Note: |
|---|
| When an image property is set, the corresponding text property acts as the alternate text for the image. For example, when the FirstPageImageUrl property is set, the text that is specified by the FirstPageText property is displayed as the alternate text for the image. On browsers that support ToolTips, this text is also displayed as a ToolTip for the corresponding button. |
The value of this property is stored in view state.
Reference
PagerSettings ClassPagerSettings Members
System.Web.UI.WebControls Namespace
PagerButtons
PagerSettings.FirstPageImageUrl Property
PagerSettings.FirstPageText Property
PagerSettings.LastPageImageUrl Property
PagerSettings.LastPageText Property
NextPageImageUrl
NextPageText
PreviousPageImageUrl
PreviousPageText
Note: