Learning Curve…

What is QueryExtender Control?

Posted on: November 2, 2011

QueryExtender Control is an add-on to the DataSource Controls: EntityDataSource and LinqDataSource. QueryExtender is used to filter the data returned by these controls. As the QueryExtender control relies on LINQ, the filter is applied on the database server before the data is sent to the page, which results in very efficient operations.
E.g.:

"<asp:LinqDataSource ID="dataSource" runat="server"> TableName="Products"> "
" </asp:LinqDataSource> <asp:QueryExtender TargetControlID="dataSource" runat="server"> "
"<asp:SearchExpression DataFields="ProductName, Supplier.CompanyName" SearchType="StartsWith">  "
"<asp:ControlParameter ControlID="TextBoxSearch" />"
 "</asp:SearchExpression> </asp:QueryExtender> "
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Author

Learning days (Calendar)

November 2011
M T W T F S S
« Oct   Dec »
 123456
78910111213
14151617181920
21222324252627
282930  

Knowledge Bank (Archives)

I am on Twitter

Blog Stats

  • 498,419 hits

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 43 other followers

%d bloggers like this: