Exemple #1
0
		public void Refresh(int customerID, int CartID)
		{
			BPShoppingCartDetails bp = new BPShoppingCartDetails();
			if (customerID == 0)
			{
				lblNumberOfItems.Text = bp.GetCartItemCountByCartID(CartID).ToString();
			}else
			{
				lblNumberOfItems.Text = bp.GetCartItemCountByCustomerID(customerID).ToString();
			}
			if (lblNumberOfItems.Text == "0")
			{
				pnlQuickCart.Visible = false;
			}
			else
			{
				pnlQuickCart.Visible = true;
			}
		}