Building a Sample Page with the QueryExtender Control

Now that we’ve seen all the different options available to us when using the QueryExtender control, let’s put this all together with a real data source and some controls on the page and see how it all works as a unit.

In this sample, we point a LINQ data source (a data source for LINQ to SQL contexts) at a context that contains tables for a video game catalog database. When the data source is set up, we just need to create an ASP.NET Web Form page called GameBrowser.aspx. This page needs to have a drop-down list that enables users to filter games by Genre and a text box that enables users to search both game title and game description. Take a look at the markup for the GameBrowser.aspx page: ...

Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.