PageLabel Property
Sets or returns the label used for the current page. The default value is an empty string ("").
public string PageLabel {
get,
set
}
Remarks
If this property contains an empty string, no label is displayed. The label can include the format specifiers {0} and {1}, which are substituted with the page number of the current page and the total number of pages, respectively, when the label is rendered. For example, the format specifier Page {0} of {1} would show the current position within the total number of pages.
Note WML devices do not render this property.
Example
The following example demonstrates how to use the PageLabel property to set the page label to "Go to page".
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack
Form1.PagerStyle.NextPageText = "2"
End If
Form1.PagerStyle.StyleReference = "title"
Form1.PagerStyle.PageLabel = "Go to page"
End Sub
[C#]
void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
Form1.PagerStyle.NextPageText = "2";
}
Form1.PagerStyle.StyleReference = "title";
Form1.PagerStyle.PageLabel = "Go to page"
}
See Also
Applies to: PagerStyle Class