Wrox Programmer Forums
|
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
 
Old September 25th, 2012, 09:25 AM
Registered User
 
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
 
Old September 25th, 2012, 09:27 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Nope; it's mentioned once or twice, but it's not used in any of the examples.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old September 25th, 2012, 10:21 AM
Registered User
 
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So can you make a shopping-cart with some other technique you describe?
 
Old September 25th, 2012, 04:03 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old September 26th, 2012, 03:57 AM
Registered User
 
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
 
Old September 26th, 2012, 11:16 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old September 27th, 2012, 03:09 AM
Registered User
 
Join Date: Sep 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, then I understand. Thanks!

No, I´m not interested in a shoppingcart. Only wants to know how to progam one





Similar Threads
Thread Thread Starter Forum Replies Last Post
SessionState Lost lpeoples BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 4 August 24th, 2010 08:02 AM
SessionState timeout=60 -- Not working!!! angshujit ASP.NET 2.0 Basics 4 March 3rd, 2008 04:23 AM
Sessionstate jgrant ASP.NET 2.0 Basics 1 August 26th, 2007 01:36 PM
Unrecognized configuration section 'sessionState' Shihanshin BOOK: ASP.NET Website Programming Problem-Design-Solution 1 May 27th, 2005 05:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.