ObjectDataSource.SelectCountMethod Property
.NET Framework 3.0
Gets or sets the name of the method or function that the ObjectDataSource control invokes to retrieve a row count.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
ObjectDataSource Members
System.Web.UI.WebControls Namespace
Select
SelectMethod
ObjectDataSource.EnablePaging Property
CanRetrieveTotalRowCount
Data Source Web Server Controls
ObjectDataSource Control Overview
Creating an ObjectDataSource Control Source Object
Assembly: System.Web (in system.web.dll)
/** @property */ public String get_SelectCountMethod () /** @property */ public void set_SelectCountMethod (String value)
public function get SelectCountMethod () : String public function set SelectCountMethod (value : String)
Not applicable.
Property Value
A string that represents the name of the method or function that the ObjectDataSource uses to retrieve a row count. The method must return an integer (Int32). The default is an empty string ("").The SelectCountMethod property identifies a business object method that is used to retrieve a total row count, to support data source paging. The SelectCountMethod property is evaluated only if the EnablePaging property is set to true.
Note: |
|---|
| If you are not familiar with the Data Access features in ASP.NET 2.0, you should read some of these topics before continuing: |
The SelectCountMethod property delegates to the SelectCountMethod property of the ObjectDataSourceView object that is associated with the ObjectDataSource control. For information about how paging is supported by the ObjectDataSource control, see EnablePaging.
Reference
ObjectDataSource ClassObjectDataSource Members
System.Web.UI.WebControls Namespace
Select
SelectMethod
ObjectDataSource.EnablePaging Property
CanRetrieveTotalRowCount
Other Resources
ASP.NET Data Access OverviewData Source Web Server Controls
ObjectDataSource Control Overview
Creating an ObjectDataSource Control Source Object
Community Additions
ADD
Show:
Note: