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 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.