Harsh Jani

Harsh Jani

  • NA
  • 34
  • 53.7k

Shopping Cart

Oct 11 2014 6:31 AM
I am creating a simple shopping cart example. In my application , I have used a Data List Control which displays all the products. The moment a user clicks on the Image, he will be redirected to Product Details page.
The Product Details contains the following:-
a) Data List Control that  displays complete description about that particular item that the user clicked in the previous page
b) Add To Cart Button where if the user clicks this button he will be redirected to Cart Page.
c) Hyperlink named "Continue Shopping" where the user is redirected to the main page if he wants to buy more items.
 
The Cart page contains the following:-
a) GridView which displays the list of items selected by a user. 
 
The problem is, if the user clicks on Add To Cart Button and goes back to the main page and selects another item from there, the details of previous item will be lost i.e. it will not be displayed in the Grid View. Kindly provide me a detailed solution for this. I have browsed a number of sites, but they are of little help. 

Answers (1)