Provides a way to create a Where clause from parameters in a WhereParameters collection.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Gets the data source object that is associated with the owner control.(Inherited from DataSourceExpression.)
Gets a value that indicates whether a data source expression object is tracking its view state changes.(Inherited from DataSourceExpression.)
Gets the owner control.(Inherited from DataSourceExpression.)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
|SetContext(Control, HttpContext, IQueryableDataSource)|
Executes the expression by using the specified owner control, context, and data source.(Inherited from ParameterDataSourceExpression.)
Returns a string that represents the current object.(Inherited from Object.)
When implemented by a class, loads the previously saved view state of the data source expression object.(Inherited from DataSourceExpression.)
When implemented by a class, gets a value that indicates whether a data source expression object is tracking its view state changes.(Inherited from DataSourceExpression.)
The QueryExtender control to filter data in data fields. The class compares a property value of a column to a specified value. For example, you can compare a Boolean value to the value in the discontinued column of a Products table in a database.class is used with the
The IQueryable data object. If you provide more than one parameter, the parameters are combined using the logical AND operator. Parameters that contain an empty value are not added to the Where clause.class creates an equals (==) comparison for the value of each parameter and the corresponding property of the
The following example shows how to search the Products table of the AdventureWorks database for products whose MakeFlag property (a Boolean column) is set to true. The Boolean value parameter is set in a check box. The result of the query that is returned from the LinqDataSource control is displayed in a GridView control.
This code example is part of a larger example that is provided in Walkthrough: Filtering Data in a Web Page Using Declarative Syntax.
Available since 4.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.