DynamicFilterExpression.ControlID Property

.NET Framework (current version)
 

Gets or sets the filter control identifier.

Namespace:   System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

public string ControlID { get; set; }

Property Value

Type: System.String

The filter control identifier.

This control identifier is used by the DynamicFilterExpression class to select the filter control to which it delegates the task of building of the query, which is in turn executed by the data source control.

The filter control delegates the task of building of the query to the filter template it references. The query is then executed by the data source control that is referenced by the QueryExtender control.

The following example shows how to use the DynamicFilterExpression class to select a filter control in a page.

<asp:QueryExtender ID="QueryExtender1" 
    TargetControlID="GridDataSource" runat="server">
    <asp:DynamicFilterExpression ControlID="CategoryFilterID" />
</asp:QueryExtender>

.NET Framework
Available since 4.0
Return to top
Show: