Shopping Baskets and Hashtables
The example in the book "Beginning ASP.NET 1.1" gives a shopping basket which uses a hashtable session variable. But it seems that the hashtable can only have 2 columns (key value pair). If I want to store multiple values for each row, what is the recommended data type ? I want to bind it to a listbox control, and store quantity, ID, description and price, and also show a running total of qty * price (perhaps in a separate control) at the bottom.
Any ideas much appreciated.
|