DataPagerField.GetQueryStringNavigateUrl(Int32) 方法

定義

建立 URL,這個 URL 包含含有所指定頁碼的查詢字串欄位。Creates a URL that contains a query string field that has the specified page number.

protected:
 System::String ^ GetQueryStringNavigateUrl(int pageNumber);
protected string GetQueryStringNavigateUrl (int pageNumber);
member this.GetQueryStringNavigateUrl : int -> string
Protected Function GetQueryStringNavigateUrl (pageNumber As Integer) As String

參數

pageNumber
Int32

目標頁碼。The target page number.

傳回

目標 URL。The target URL.

備註

和分頁欄位會使用GetQueryStringNavigateUrl 方法,為頁面的每個按鈕建立目標URL。NextPreviousPagerField NumericPagerFieldThe GetQueryStringNavigateUrl method is used by the NumericPagerField and NextPreviousPagerField pager fields to create the target URL for each button of the pager field. 目標 URL 包含包含名稱/值組的查詢字串欄位。The target URL includes a query string field that contains a name/value pair. 名稱是DataPager.QueryStringField屬性的值, 而值則代表的pageNumber值。The name is the value of the DataPager.QueryStringField property, and the value represents the value of pageNumber.

適用於

另請參閱