Szerkesztés

Megosztás a következőn keresztül:


PagerStyle.NextPageText Property

Definition

Gets or sets the label used for a UI element that is used to navigate to the next page. The default value is "Next". This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.

public:
 property System::String ^ NextPageText { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Bindable(true)]
public string NextPageText { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.NextPageText : string with get, set
Public Property NextPageText As String

Property Value

The label used for a UI element that is used to navigate to the next page.

Attributes

Examples

The following example demonstrates how to the use the NextPageText property to set the next page label to one more than the current page.

Private Sub Form1_PageIndexChanged(sender As Object, e As EventArgs)  
     Form1.PagerStyle.NextPageText = (Form1.CurrentPage + 1)  
End Sub  
void Form1_PageIndexChanged(object sender, EventArgs e)  
{  
    Form1.PagerStyle.NextPageText =   
        (Form1.CurrentPage + 1).ToString();  
}  

Remarks

The label can include the format specifier {0}, which is substituted with the page number of the next page when the label is rendered.

Applies to

See also