Hello and thanks for reading
I'm making a webshop in asp.net 4,5 and so far everything is working fine, i can add/remove and update the shopping cart.
What i would like a little help with is the following: I need to get the information in codebehind about how many items that has been added to the shopping cart bases on an item ID.
so lets say i have added 4 knifes and 3 forks to my shopping cart and i ask how many has been added by ID 4(forks) then it will only return 3(as the amount of forks that has been added)
Here is some of my shopping cart Class file: if you feel you need more info from the class file then please say.
public class ShoppingCart
{
private List<OrderLines> items;
public List<OrderLines> Items
{
get { return items; }
set { items = value; }
}
public ShoppingCart()
{
items = new List<OrderLines>();
}
private int ...
Go to the complete details ...