This documentation is archived and is not being maintained.

DynamicFilterExpression::ControlID Property

Gets or sets the filter control identifier.

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

public:
property String^ ControlID {
	String^ get ();
	void set (String^ value);
}

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

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: