NextPreviousPagerField::LastPageText Property

 

Gets or sets the text that is displayed for the last-page button.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
property String^ LastPageText {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

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

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show: