Developing the Product Selection Page

When a user clicks a category name on the category menu, she is taken to the product selection page. This page lists all products in the specified category. The product selection page is constructed similarly to the category menu user control. That is, it is made up of a user interface piece, a code behind class, and the strongly typed dataset named CatalogDS.cs.

To better understand how this functionality was achieved, we'll start with CatalogDS. After we describe the CatalogDS functionality, we can discuss the code behind and user interface.

CatalogDS

The main functionality, for product selection, provided by CatalogDS is the FindByCategoryID method. This method takes a category ID as a parameter and returns ...

Get Building e-Commerce Sites with the .NET Framework now with O’Reilly online learning.

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