Posted on: 2/11/2015 10:21:39 AM | Views : 525

Hi, 
I have a page with a listview control which generates a number of products, id like users to be able to add a product to a quote which is a form on a separate page on a button click.
Currently when the user clicks an add to quote, the details of the product are put in to a set of variables as shown below;
protected void addToQuote_Click (object sender, EventArgs e) { ListViewDataItem clickedItem = ((Button)sender).NamingContainer as ListViewDataItem; var PartNo = ((Label)clickedItem.FindControl("PartNoLabel")).Text; var Description = ((Label)clickedItem.FindControl("DescriptionLabel")).Text; var Quantity = ((TextBox)clickedItem.FindControl("Quantity")).Text; } This successfully grabs the details of the clicked item.
The code which generates the the quote part of the form on the form page is shown below;

Go to the complete details ...