 |
BOOK: Beginning ASP.NET 4 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

September 25th, 2012, 09:25 AM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Sessionstate
I have been reading a little about sessionstate in other books and have only recently got this one.
Is sessionstate and the likes used in this book or it other techniques used?
I want to make a shoppingcart application.
If so, where can I find it?
|
|

September 25th, 2012, 09:27 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Nope; it's mentioned once or twice, but it's not used in any of the examples.
Cheers,
Imar
|
|

September 25th, 2012, 10:21 AM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
So can you make a shopping-cart with some other technique you describe?
|
|

September 25th, 2012, 04:03 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Probably, yes.... You can store the cart in the database and store a unique ID in a cookie.
However, the book doesn't address shopping carts explicitly, so you may want to look elsewhere as well for a more detailed description of building a cart. For instance, you could download the code for my book ASP.NET 2 Instant Results that feature a cart and see if you like it ( VB only).
Cheers,
Imar
|
|

September 26th, 2012, 03:57 AM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok, but that´s not the preferred way I suppose?
My question was really if there was a new better or preferred way to make a shoppingcart. Maybe some new technique in .Net 4.
|
|

September 26th, 2012, 11:16 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
Ok, but that´s not the preferred way I suppose?
|
It all depends. It's not uncommon to do so, as it scales better. Server memory is limited so on busy websites, storing the cart in the database enables you to serve more users, at the cost of decreased performance.
Quote:
|
if there was a new better or preferred way to make a shoppingcart
|
Not in the framework directly. The same principle (session state, a database or some other durable mechanism) is still the way to go.
You may want to search Google for ready-made shopping carts (commercial and open source) or look into ready-made CMS and eCommerce systems such as Dynamicweb.
Cheers,
Imar
|
|

September 27th, 2012, 03:09 AM
|
|
Registered User
|
|
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Ok, then I understand. Thanks!
No, I´m not interested in a shoppingcart. Only wants to know how to progam one 
|
|
 |
|