Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics 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
  #1 (permalink)  
Old October 16th, 2006, 12:23 PM
Friend of Wrox
 
Join Date: Aug 2006
Location: norcross, Ga, USA.
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Default shopping cart concept

hi all,

i am trying to make a sample ecommerce application.
i am now struck with the shopping cart area
if someone can give me some advices, and suggestions, that will be very helpful

i have 3 categories of product, in page 1
and on selecting particualr category, i am displaying the associated products in a datalist
the datalist displays product image,and its model number

when the user clicks the model number, it get redirected to page2, which contains the details of the particualr product

this page contains a hyperlink "AddToCart". on clicking this, i have to perform the shoppingcart format

i am confused, where shall i create a datatable, and then put it in seesion, and then bind with a datagrid for shopping cart.

can anyone please help me conceptually

thanks in advance

  #2 (permalink)  
Old October 16th, 2006, 12:29 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

There are as many ways to create a shopping cart as there are programmers that design them.

Some of the more straightforward methods are:

1. Use a database backend to store the users 'cart' and then relate the database to the user either by way of a sessionID or from a cookie that you place on the users PC

2. Store it in session (though I dont advise this). You could store the contents in session and then build an in memory datatable to bind to, but if the user is placing many different things in their carts and this is persisted across multiple users/sessions you run the potential of degrading server preformance as all of that info is being stored on the server.

I would almost certainly use the database backend and just pull from the database when the user hits the "Cart Page" and build the cart off a database query.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shopping Cart seannie ASP.NET 2.0 Basics 0 December 12th, 2006 10:28 AM
Shopping cart help rsm42 ASP.NET 1.0 and 1.1 Basics 3 December 9th, 2006 06:09 AM
shopping cart xipnl BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 June 10th, 2005 07:00 PM
Shopping cart Manoj babu General .NET 0 February 14th, 2005 04:20 AM





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