protected void Button1_Click(object sender, EventArgs e) { Label1.Text = ProdID.ToString(); // ShoppungCart.GetShoppingCart().AddItem(ProdID); // Response.Redirect("ViewCart.aspx"); } protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e) { int ProdID = Convert.ToInt32(DataList1.DataKeys[e.Item.ItemIndex]); }