Re: Suggestions on storing shopping cart info
- From: "Cirene" <cirene@xxxxxxxxxxx>
- Date: Mon, 18 Aug 2008 08:21:54 -0400
But to perisist it using a session var doesn't using a List allow you to
easily access, add and remove items in the cart? Or should I just use an
arraylist of the cart items?
I was just looking at this and it seemed like a good idea...
http://www.java2s.com/Code/VB/Generics/GenericListstoresGenericClass.htm
By the way i'm not sure what "top-posting" is. I just hit "Reply to Group"
in Outlook Express. :)
"Mark Rae [MVP]" <mark@xxxxxxxxxxxxxxxxx> wrote in message
news:%23yNHH7QAJHA.716@xxxxxxxxxxxxxxxxxxxxxxx
"Cirene" <cirene@xxxxxxxxxxx> wrote in message
news:O4ZMaYOAJHA.5048@xxxxxxxxxxxxxxxxxxxxxxx
[please don't top-post]
That's what I do, though I tend to use a generic e.g. Dictionary<int,
int> to store the ID of the purchased product along with the number of
items purchased...
Would using a generic list (of these objects) be the best way to handle
this in your opinion? Store that to a session variable?
No it wouldn't, otherwise that's what I'd be doing. I've never found any
need to persist anything other than the ID of the item bought together
with the number of items purchased.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
.
- Follow-Ups:
- Re: Suggestions on storing shopping cart info
- From: Mark Rae [MVP]
- Re: Suggestions on storing shopping cart info
- References:
- Suggestions on storing shopping cart info
- From: Cirene
- Re: Suggestions on storing shopping cart info
- From: Mark Rae [MVP]
- Re: Suggestions on storing shopping cart info
- From: Cirene
- Re: Suggestions on storing shopping cart info
- From: Mark Rae [MVP]
- Suggestions on storing shopping cart info
- Prev by Date: Design question
- Next by Date: LDAP Connection Issue
- Previous by thread: Re: Suggestions on storing shopping cart info
- Next by thread: Re: Suggestions on storing shopping cart info
- Index(es):
Relevant Pages
|