Export (0) Print
Expand All

DataSourceView.CanPage Property

Gets a value indicating whether the DataSourceView object associated with the current DataSourceControl object supports paging through the data retrieved by the ExecuteSelect method.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

public virtual bool CanPage { get; }
/** @property */
public boolean get_CanPage ()

public function get CanPage () : boolean

Not applicable.

Property Value

true if the operation is supported; otherwise, false. The base class implementation returns false.

A data-bound control can request paging by adding the Page field to the DataSourceSelectArguments object passed to the ExecuteSelect method. If a data-bound control requests paging, but the CanPage property returns false, the data source view throws an exception.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft