Showing posts with label custom filter. Show all posts
Showing posts with label custom filter. Show all posts

Friday, 11 February 2011

ASP: How to create custom filters for your tabular data

   


Displaying data in a table is the most used and easiest way of publishing information for the user. It is quite common in web app and sites, that a query resulting recordset is displayed in a tabular form.
In this short article I will explain how to apply custom filters to the recordset, based on users requests. In order to show you how to do it, I need to explain a bit where to start. Our table could be something like:
IDPRODUCT FAMILYDESCRIPTIONCODECOLOURTYPE
1BottleGlass bottle1234GreenProduct
2BoxCarton box5678BrownPackage
The table could go on with all the products. We are going to create links inside the table to filter data.