Design Notes

Dynamic-CD Example - Shopping Cart - More Information

Shopping Cart home page

More info for: Earth tranquilities mouse mat
Part number:SC_TV_001

Earth tranquilities mouse mat

The essential add on for that environmental gem - the "Earth tranquilities harminies" CD. Batteries not supplied.

Design Notes
To see the ASP source for this page click here
This page illustrates a very simple look up of information in a database.

The page displays more information about a part.  The part is specified in the URL as a "QueryString" parameter, eg moreinfo.asp?id=12.  A database query finds the record where the id matches the ID field in the Parts table, and displays the extra information for the part.

Note that the script copes with two errors reasonably gracefully.  First, if no id is given then "No id specified" is reported.  Second, if the part id is not found then "Sorry, part id not found: xxx" is returned.  Although these errors should not appear in practice, it is best to have this code so that any bugs are caught neatly.