DetailsViewRow dr1 = (DetailsViewRow)((Button)sender).Parent.Parent; string name = ((Label)dr1.FindControl("Label3")).Text; string price = ((Label)dr1.FindControl("Label2")).Text; string id = ((Label)dr1.FindControl("Label4")).Text; string quantity = ((TextBox)dr1.FindControl("txtQuantity")).Text; LineItem item1 = new LineItem(int.Parse(id), name, double.Parse(price), int.Parse(quantity)); Invoice ord1 = (Invoice)Session["basket"]; ord1.AddItem(item1); Server.Transfer("ShoppingCart.aspx");
DetailsViewRow dr1 = (DetailsViewRow)((Button)sender).Parent.Parent;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)