Click here to Skip to main content
15,923,015 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am trying to implement shopping cart system in my website. For that I am allowing a customer to select the multiple product.they can also remove the selected product. So please tell me how and where to store selected value information so that It can be accessed to next page, what are all the product has selected.

Thank You
Posted
Updated 12-Apr-11 1:18am
v2

If you look here[^] you may find some help.
 
Share this answer
 
You can create a Class that will handle the CartItem and store it on a Session. That way, you can access it on your other page.

Class CartItem
public class CartItem {
   public decimal TotalCost { get; set; }
   public List<string> Items { get; get; }
}
</string>


Page 1
Session["CartItems"] = cartItems;


Page 2
CartItems itemsFromPage2 = Session["CartItems"] != null ? (CartItems)Session["CartItems"] : null;
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900