This application is an online shopping cart written in ASP.NET where users can select items and place an order. I have added the features of login and adding new users if user does not exist. Validations are performed wherever needed like email format validation, zip code etc.
Figure 1.

DataBase
I have used the SQL Server NorthWind database. The two tables used are:
- Products Table
- Order Details Table.
I have used two classes.
public
class CartRow{
public string id;
public string name;
public string price;
public string items;
};
public class Cart
{
public System.Collections.ArrayList list = new ArrayList(20);
}; The two main web-forms are Main.aspx and CheckOut.aspx.
Main.aspx contains a grid showing all items present in the products table along with the price per unit and the quantity per unit.
Fig 1 shows the Main.aspx page, Where user can select items from the products grid(left).As he selects an item it is added to his cart and the item is displayed in the right panel. The total price is displayed in the label above. As the user adds more items to his cart the recalculated price is shown .Upon clicking the clear cart button the cart gets empty.
If the user now wants to finalize the order and presses the CheckOut button he his redirected to the Login.aspx page(Fig 2)
I have set the default username as user for the sample and password is u.

Figure 2.
And finally the user is asked to enter the CreditCardNumber, billing zip code and his email address. It does the client side validations and then confirms the order placed by sending a mail to the user as shown in (Fig 3).
And the order is finalized. For more advanced shopping cart this information plus the item information has to be stored in some database.

Figure 3.
kiranPosted Mar 9, 2014, 11:49 PM
Nice one
MoonPosted Apr 28, 2013, 2:51 AM
please help me i want to apply the same practies to my project
Santosh YadavPosted Apr 9, 2013, 12:01 AM
Nice article.
abha datarPosted Jan 4, 2013, 2:56 AM
Error 3 Missing partial modifier on declaration of type 'shs.DataSet1.Order_DetailsDataTable'; another partial declaration of this type exists Error 1 Missing partial modifier on declaration of type 'shs.DataSet1'; another partial declaration of this type exists like this 14 errors are there
manish kumarPosted Dec 14, 2012, 1:23 PM
thanx bro.......................0_0
studioPosted Sep 13, 2012, 5:10 AM
Not working Error on connection to database
yuvraj gorePosted Apr 5, 2012, 1:22 AM
good job
yuvraj gorePosted Apr 5, 2012, 1:22 AM
good job
deviPosted Sep 14, 2011, 2:09 PM
everythin is fyn but cant access the database .. pls attach the database (*.mdb file) along with the code pls
veenu sehgalPosted Apr 15, 2011, 7:52 AM
plz tell me can we make more attractive shopping cart website
Washeem SunnyPosted Jan 10, 2011, 10:42 AM
Thanks for da Project... Im studing in BCA TY,,, need some asp.net projects.. can eni1 help me on dis way??
neha kariaPosted Jan 5, 2011, 1:10 PM
i will be very thank full to u. plz mail me as soon as possible. my id is [email protected]
yuva deviPosted Nov 27, 2010, 5:00 AM
please give me some idea to develop online auction using asp.net
uday kumarPosted Nov 4, 2010, 12:02 PM
pls send me
shikha dawarPosted Sep 27, 2010, 1:37 PM
give me code also........ please
soumyaranjan sahooPosted Dec 8, 2009, 3:33 AM
what is the source code to create a simple shooping card application in asp.net
RolandoPosted Apr 21, 2009, 4:52 PM
Ugly interface
VijayPosted Apr 21, 2009, 4:06 AM
plz give me documentation for online shopping for mobiles. thnq. my email-id is [email protected]
soumen ghoshPosted Mar 30, 2009, 6:23 AM
Can i get the database. my emailid is [email protected]
Gurjeet SainiPosted Mar 27, 2008, 1:28 AM
Hi I'm trying to download ASPNetShoppingCart.zip file, but showing error.Please let me know how can I download it. Thanks Gurjeet Saini
shashi kantPosted Mar 5, 2008, 11:57 AM
please send me code for payment gateway.
shashi kantPosted Mar 5, 2008, 11:56 AM
give me some code for shopping cart