Implementing Search

It looks as if we need to have a page in which the user enters search criteria and then pushes the Search button. When the Search button is pushed, we need to copy the criteria from the page and pass it to a method in the CatalogService class, which will search the database, using the criteria, and return an ArrayList of recordings that match the search criteria. When we get the ArrayList back, we will have to bind it to a Repeater to have the results displayed in the tabular form.

This implementation is really two separate tasks: the first task is to implement the search functionality in the CatalogService class, and the second task is to write the Web page that interacts with the user and calls the method in the CatalogService ...

Get Test-Driven Development in Microsoft® .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.