PagedDataSource.AllowServerPaging 屬性

定義

取得或設定值,指出是否啟用伺服器端分頁。

public:
 property bool AllowServerPaging { bool get(); void set(bool value); };
public bool AllowServerPaging { get; set; }
member this.AllowServerPaging : bool with get, set
Public Property AllowServerPaging As Boolean

屬性值

Boolean

如果啟用伺服器端分頁,則為 true,否則為 false

備註

ASP.NET 2.0 版資料繫結控制項 (例如 GridViewDetailsViewFormView) 透過伺服器端分頁提供自動分頁功能。 使用 ASP.NET 2.0 資料繫結控制項時,請將此屬性設定為 true

注意

伺服器端分頁和自訂分頁是互斥的。 如果您將設定 AllowServerPagingtrue ,請確定 AllowCustomPaging 已將設定為 false

適用於

另請參閱