protected void Button1_Click(object sender, EventArgs e) { double Price = double.Parse(((Label)DataList1.Controls[0].FindControl("PriceLabel")).Text); string ProductName = ((Label)DataList1.Controls[0].FindControl("NameLabel")).Text; string ProductImageUrl = ((Label)DataList1.Controls[0].FindControl("ImageUrlLabel")).Text; int ProductID = int.Parse(Request.QueryString["ProductID"]); if (Profile.SCart == null) { Profile.SCart = new ShoppingCartExample.Cart(); } Profile.SCart.Insert(ProductID, Price, 1, ProductName, ProductImageUrl); Server.Transfer("Products.aspx"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)