I am currently building a shopping cart application in C# where there are 10 items to select from. There are 10 "Add to Cart" buttons, when clicked, will trigger a single method. That single method will either add a row (new item), or update the quantity (old item). In my existing code, i loop through each row in the DataSet to determine whether i should add a row or update a row.
Is there a way to store the item information (name, description and price) in EventArgs so that when the "Add to Cart"
button is clicked, the item information is passed to the single method using EventArgs?