QueryExtender.DataSource Property
.NET Framework (current version)
Gets the data source control (IDataSource object) to use for the query.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
[<BrowsableAttribute(false)>] abstract DataSource : IQueryableDataSource with get [<BrowsableAttribute(false)>] override DataSource : IQueryableDataSource with get
Property Value
Type: System.Web.UI.WebControls.IQueryableDataSourceThe data source control to use for the query.
| Exception | Condition |
|---|---|
| InvalidOperationException | The DataSource property is null. |
The QueryExtender control supports the LinqDataSource and EntityDataSource controls.
.NET Framework
Available since 4.0
Available since 4.0
Show: