Adding Filtering Capabilities

It would be interesting having filtering capabilities; for example we could implement a filter that enables fetching all orders with the ShipCity property value that starts with the specified text. Thus in the toolbox double-click a TextBox and a Button. These controls will be automatically placed onto the page (they will be placed at the top if that is where the cursor is in the designer). Now replace the Name property value of the TextBox with FilterTextBox; while in the Button properties change the Name value with FilterButton and the Text property with Filter. To provide filtering capabilities over the data source, ASP.NET offers the QueryExtender control that you can find within data controls in the toolbox. ...

Get Visual Basic® 2010 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.