protected void btnBuy_Click(object sender, EventArgs e) { if (Application["Carrito"] == null) { Application["Carrito"] = CartService.CrearCarrito(); } CartService.AgregarItem(int.Parse(Request.QueryString["Id"].ToString()), txtNombre.Text, float.Parse(txtPrecio.Text)); Response.Redirect("Products.aspx"); }