Category Listings

When we first come to the store, we of course will want to know what's for sale. Because we're concentrating on the technology, we won't worry too much about the presentation, but we will need a single start page for the store, in this case bazaar.asp. This page can have any specials that we're running, but should also list (at a minimum) the categories of products that we have for sale. We already have a file called bazaar.asp in the bazaar directory, but let's overwrite it with a copy of template.asp anyway because it already has the database information that we need. We customize bazaar.asp for the Bazaar and add the category listings in Listing 7.2.

Code Listing 7.2. bazaar.asp: Adding Category Listings
 0: <%@ LANGUAGE="VBSCRIPT" ...

Get Active Server Pages 3.0 from Scratch 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.