I tried to find similar questions but with no luck. Anybody can give me an idea how to build a Shopping Cart in ASP.NET the best practice way?
I know a wayto use Session but I think it would be painful to maintain the Session across pages. I've heard also to use Profile.
So which one do I have to choose? Which one is the best and most recommended solution?
MVC stands for Model, View, and Controller. MVC separates an application into three components - Model, View, and Controller. Model: Model represents the shape of the data. A class in C# is used to describe a model. Model objects store data retrieved from the database.
I've built many using the following methods:
A good book that covers e-commerce is the APress book "Beginning ASP.NET 2.0 E-Commerce".
Seems a bit vague question, I presume you asking how to build the whole application which is hard to answer in brief
Googling pulled up an excellent article:
http://net.tutsplus.com/tutorials/other/build-a-shopping-cart-in-aspnet/
also look at this:
http://codebetter.com/blogs/david.hayden/archive/2005/03/22/60166.aspx
Regarding session state, from my experience, sessionstate is useful on a single server set up, but if you thinking ahead and need scalability to web farm scenario, additional issues arise with serialising data. This is needed when storing session state in sql server. adding a lot of complexity to your application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With