Form.PagerStyle Property

 

Gets or sets the style used to render the form's pagination UI. The default value is an empty string (""). This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

Public ReadOnly Property PagerStyle As PagerStyle

Property Value

Type: System.Web.UI.MobileControls.PagerStyle

The style used to render the form's pagination UI.

If this property is set programmatically, it is not persisted for each request. If the property is set declaratively, the property is persisted for each request.

The following code example demonstrates how to use the PagerStyle property. This code example is from a larger example for the ControlToPaginate property.

Private Sub Page_Load(ByVal sender As Object, _
    ByVal e As EventArgs)

    ' Set the pager text properties
    If Not IsPostBack Then
        Form1.PagerStyle.NextPageText = "Go Next >"
    Else
        ' For postback, set different text
        Form1.PagerStyle.NextPageText = "Go More >"
        Form1.PagerStyle.PreviousPageText = "< Go Prev"
    End If
End Sub

.NET Framework
Available since 1.1
Return to top
Show: