protected void UpdateBtn_Click(object sender, ImageClickEventArgs e)
        {
            a.MyShoppingCart usersShoppingCart = new a.MyShoppingCart();
            String           cartId            = usersShoppingCart.GetShoppingCartId();

            a.ShoppingCartUpdates[] cartUpdates = new a.ShoppingCartUpdates[MyList.Rows.Count];
            for (int i = 0; i < MyList.Rows.Count; i++)
            {
                IOrderedDictionary rowValues = new OrderedDictionary();
                rowValues = GetValues(MyList.Rows[i]);
                cartUpdates[i].ProductId        = Convert.ToInt32(rowValues["ProductID"]);
                cartUpdates[i].PurchaseQuantity = Convert.ToInt32(rowValues["Quantity"]);
                CheckBox cbRemove = new CheckBox();
                cbRemove = (CheckBox)MyList.Rows[i].FindControl("Remove");
                cartUpdates[i].RemoveItem = cbRemove.Checked;
            }
            usersShoppingCart.UpdateShoppingCartDatabase(cartId, cartUpdates);
            MyList.DataBind();
            lblTotal.Text = String.Format("{0:c}", usersShoppingCart.GetTotal(cartId));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            a.MyShoppingCart usersShoppingCart = new a.MyShoppingCart();
            String           cartId            = usersShoppingCart.GetShoppingCartId();
            decimal          cartTotal         = 0;

            cartTotal = usersShoppingCart.GetTotal(cartId);
            if (cartTotal > 0)
            {
                lblTotal.Text = String.Format("{0:c}", usersShoppingCart.GetTotal(cartId));
            }
            else
            {
                LabelTotalText.Text         = "";
                lblTotal.Text               = "";
                ShoppingCartTitle.InnerText = "Shopping Cart is Empty";
                UpdateBtn.Visible           = false;
                CheckoutBtn.Visible         = false;
            }
        }