Modifies a database query by using the data key of the item that is selected in a data-bound control.
Assembly: System.Web.DynamicData (in System.Web.DynamicData.dll)
Gets or sets the name of the column that the query is based on.
Gets or sets the ID of the source data-bound control.
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.)
Gets the data source query to modify. (Overrides DataSourceExpression.GetQueryable(IQueryable).)
Restores the previously saved view state. (Overrides DataSourceExpression.LoadViewState(Object).)
Saves the changes to view state since the time the page was posted to the server.(Overrides DataSourceExpression.SaveViewState().)
|SetContext(Control, HttpContext, IQueryableDataSource)|
Initializes the filter expression with data source information.(Overrides DataSourceExpression.SetContext(Control, HttpContext, IQueryableDataSource).)
Returns a string that represents the current object.(Inherited from Object.)
Causes the DataSourceExpression.TrackViewState().)object to track changes to its view state so they can be stored in the control's view state object and to be persisted across requests for the same page.(Overrides
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 GridView control and a ListView control. One control is the source, where a data key (row) is selected. The other control is the target where the data is displayed based on the selected data key. The target data is obtained by a data source control that executes the query that is defined in the QueryExtender class and that is built by using the selected data key.class that is designed to be used when a page contains two data-bound controls such as a
To use theclass in a page, you follow these steps:
The following example shows how to use the QueryExtender control points to a target data source control that obtains data that is filtered by using the selected data key. In the example, the source data-bound control references a parent table and the target data-bound control references a child table.class to reference a source data-bound control, where the data key is selected. The
<asp:QueryExtender ID="QueryExtenderID" TargetControlID="TargetDataSourceID" runat="server"> <asp:ControlFilterExpression ControlID="SourceGridViewID" /> </asp:QueryExtender>
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.