Design Notes

Dynamic-CD Example - Shopping Cart - More Information

Shopping Cart home page


More info for: Transporter unit - 100 mile range
Price:199.99
Part number:SC_TV_004

Transporter unit - 100 mile range

If you ever wanted to beam yourself up, Star Trek style, then this is the unit for you. Don't try to go too far or you'll end up as atomic rain.

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.