Design Notes

Dynamic-CD Example - Shopping Cart - More Information

Shopping Cart home page

More info for: Mobile phone base station
Part number:SC_TV_006

Mobile phone base station

That's right, buy a few of these and hook them up to your telephone socket to create your very own mobile telephone network

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.