System.Web.UI.WebControls Namespace DataGridPagerStyle Class
Sets or retrieves the text displayed for the next page button.
Inline |
<pagerstyle nextpagetext = strValue ... > |
Script |
DataGrid.PagerStyle.NextPageText = strValue |
strValue |
The text to display for the next page button. |
The property is read/write with a default value of >.
Use the NextPageText property to provide custom text for the next page button. The Mode property must be set to PagerMode.NextPrev for this property to have any effect.
This property is used along with the PrevPageText property to create a custom set of controls for the next and previous buttons of the pager on the DataGrid control.
NOTE: This property does not automatically encode special characters to HTML. You need to convert these characters to the appropriate HTML value. For example, use > to render the greater than symbol ( > ).
The following example demonstrates how to set the NextPageText property at design time, to specify custom text for the next page navigation button of the pager element.
<pagerstyle ...
nextpagetext = "Next"
prevpagetext = "Back" />
DataGridPagerStyle Members PrevPageText