i

ASP.Net A Complete Guide

QueryExtender

QueryExtender control is used to apply the filtering on the specified data source. This control is added in ASP.NET 4. It helps in dynamically filtering data.

Consider any web application where you need to find some item, then finding the item use the terminology like search/ find/ advance search, and those all use the filtering technique. Filtering allows you to apply the "where" clause on the data source. The "Where" clause available in the LinqDataSource control does not expose its full functionality that available in the LINQ. To overcome this situation, the ASP.NET 4 has introduced the QueryExtender, and that allows us to apply filtering to a specified data source and with very less amount of code.

Example of QueryExtender Control: