protected void Page_Load(object sender, EventArgs e) { using (CartAction act = new CartAction()) { double carttotal = act.GetTotal(); if (carttotal > 0) { lblTotal.Text = string.Format("{0:c}", carttotal); } else { lblTotalText.Text = ""; lblTotal.Text = ""; ShoppingcartTitle.InnerText = "Shopping Cart is Empty"; } } }