SportsStore: Completing the Cart

In this chapter, we complete the user-facing parts of the SportStore application by finishing off the shopping cart and adding support for submitting and validating orders.

Removing Unwanted Cart Items

We need to give the user the means to remove items from the basket. In Listing 8-1, you can see how we have added remove buttons to the CartView.aspx Web Form for each item in the cart.

Listing 8-1.  Adding Support for Removing Products from the Cart

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="CartView.aspx.vb"    Inherits="SportsStore.CartView" MasterPageFile="∼/Pages/Store.Master" %>

Get Pro ASP.NET 4.5 in VB, Fifth Edition 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.