WebShops and E-commerce online shopping is one of the biggest revenue generating businesses in the world. If you can think of it, chances are you can buy it online. The convenience of being able to purchase anything from a car to a pencil in the comfort of your home without having to travel has made online shopping a massive success.
As a developer you have probably either worked on or been asked to work on a site that has a shopping cart mechanism. Session management is the first thing that comes to mind since you need to persist user selections across multiple requests. Managing this session information in an organized fashion is the first obstacle in shopping cart development.
With ASP.NET 1.1 you also have to deal with the post-back annoyance. Every time a user clicks on a product to add to their cart the entire page needs to be refreshed, and an updated cart total displayed usually somewhere in a top navigation bar.
With Ajax technology now available to ASP.NET 1.1 users through the user of the freely distributable MagicAjax component you can now implement a much more aesthetic version of an online shopping cart without having full page refreshes.
In this tutorial we will be looking at a development pattern, and ‘not’ a complete shopping cart implementation. The goal is to learn the pattern so that you can apply it in different ways to your specific needs.