protected void Page_Load(object sender, EventArgs e) { //On load total the carts cost ShoppingCartActions usersShoppingCart = new ShoppingCartActions(); decimal cartTotal = 0; cartTotal = usersShoppingCart.GetCartTotal(); //Display the total in in the frontend if (cartTotal > 0) { lblTotal.Text = String.Format("{0:c}", cartTotal); } else { LabelTotalText.Text = ""; lblTotal.Text = ""; ShoppingCartTitle.InnerText = "Shopping Cart is Empty"; UpdateCartBtn.Visible = false; } }