Mar 04, 2010 09:45 AM|Gimbal5401|LINK
I'm building an online shop, but have run into a problem.
When the user click that they want to add a product to their basket, i add the product ID to an array that is held on the session.
This all works great and i display how many items they have selected etc..
The problem comes when i get to the checkout page.
Whats the best way of displaying the items that the user has selected?
should i use a datagridview? if so, how do i pass the array into the SQL in order to get all the data rows that i need?
should i use a repeater? this gives me the same problem as above though.
I just cant seem to work out how to get the values fro the array and then run the sql for each ID to get the information to show on the screen.
I could loop through the array using each ID as a parameter in the SQL but then where do i put the data? in a dataset? a datatable?