protected void Page_Load(object sender, EventArgs e) { //Label1.Text = DateTime.Now.ToString(); if (IsPostBack) { return; } productItems = ProductItem.GenterateGenericInventoryList(); foreach (ProductItem p in productItems) { ListItem li = new ListItem(); li.Value = p.ProductPrice.ToString(); li.Attributes.Add("Price", p.ProductPrice.ToString()); li.Text = p.GetDescription(); ListBox1.Items.Add(li); } UpdateShoppingCartLabel(); UpdateTotalCostLabel(); }