PagerStyle.NextPageText 属性

定义

获取或设置用于导航到下一页的用户界面元素所使用的标签。Gets or sets the label used for a UI element that is used to navigate to the next page. 默认值为“Next”。The default value is "Next". 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。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

属性值

String

用于导航到下一页的用户界面元素所使用的标签。The label used for a UI element that is used to navigate to the next page.

属性

示例

下面的示例演示如何使用 NextPageText 属性将下一页标签设置为比当前页多一个。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();  
}  

注解

标签可以包含格式说明符,该说明符 {0} 将替换为呈现标签时下一页的页码。The label can include the format specifier {0}, which is substituted with the page number of the next page when the label is rendered.

适用于

另请参阅