asp.net.ph

DataGridPagerStyle.PrevPageText Property

System.Web.UI.WebControls Namespace   DataGridPagerStyle Class


Sets or retrieves the text displayed for the previous page button.

Syntax


Inline <pagerstyle prevpagetext = strValue ... >
Script DataGrid.PagerStyle.PrevPageText = strValue

Property Value


strValue The text to display for the previous page button.

The property is read/write with a default value of <.

Remarks

Use the PrevPageText property to provide custom text for the previous 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 previous 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 &lt; to render the less than symbol ( < ).

Example

The following example demonstrates how to set the PrevPageText property at design time, to specify custom text for the previous page navigation button of the pager element.

<pagerstyle ... 
   nextpagetext = "Next" 
   prevpagetext = "Back" />
See Also

DataGridPagerStyle Members   NextPageText Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph