NextPreviousPagerField::LastPageText Property
Gets or sets the text that is displayed for the last-page button.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Property Value
Type: System::StringThe text that is displayed for the last-page button. The default is "Last".
When the ShowLastPageButton property is set to true, use the LastPageText property to specify the text to display for the last-page button.
When the ButtonType property is set to ButtonType.Image, the image is displayed and the LastPageText property acts as the alternate text for the image. On browsers that support tooltips, this text is also displayed as a tooltip.
The value of this property is stored in viewstate, and it can be saved automatically to a resource file by using a designer tool. For more information, see LocalizableAttribute and ASP.NET Globalization and Localization.
The following example shows how to use the LastPageText property to customize the text for the last-page button of the pager field in a DataPager control.
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.