Example #1
0
        protected void ShoppingCartList_OnDataBound(object sender, EventArgs e)
        {
            if (CurrentCart.Items.Count() == 0)
            {
                return;
            }

            Literal SubTotal        = (Literal)ShoppingCartList.FindControl("SubTotal");
            var     ShoppingCartTax = (Literal)ShoppingCartList.FindControl("ShoppingCartTax");
            Literal Total           = (Literal)ShoppingCartList.FindControl("Total");

            SubTotal.Text        = CurrentCart.GetSubTotal().ToString();
            Total.Text           = CurrentCart.GetTotal().ToString();
            ShoppingCartTax.Text = SettingsMapper.GetSettings().ShoppingCartTax.ToString();
        }