protected void PopulateControls() { DataTable dt = ShoppingCartAccess.GetCartItems(); if (dt.Rows.Count > 0) { grid.DataSource = dt; grid.DataBind(); decimal amount = ShoppingCartAccess.GetCartTotal(); cartTotal.Text = String.Format("{0:c}", amount); } else { // Label1.Text = "These are no items in your cart "; grid.Visible = false; grid.DataBind(); cartTotal.Text = String.Format("{0:c}", 0); } }