It depends and your business rules should dictate it.
One approach would be to use a permananet table in your database to store shopping carts for X user much like you proposed in your original post. (There is no reason to use a Temp Table)
Your second approach could be to store the value in session. The easiest way to do this, IMHO, is to create a custom type and store a
in session for each user. Your draw back here is that the shopping cart will be lost once the session times out or the browser is closed. (You could, of course, give the user the ability to save their shopping cart which you could then write to a database)
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Beginning Visual C# 2008
Professional Search Engine Optimization with ASP.NET
Professional IIS 7 and ASP.NET Integrated Programming
Wrox Blox: Introduction to Google Gears
Wrox Blox: Create Amazing Custom User Interfaces with WPF and .NET 3.0
================================================== =========