PagerStyle Property
Sets or returns the style used to render the form's pagination UI. The default value is an empty string ("").
public System.Web.UI.MobileControls.PagerStyle PagerStyle {
get
}
Remarks
If this property is set programmatically, it is not persisted, unless the property is set dynamically on each request. If the property is set declaratively, the property is set on each request.
Example
The following example demonstrates how to use the PagerStyle property.
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: Form Class