IN my shopping website project i want to add product from product page to cart page but i have problem when i select more than one product session vanishes the first product.
thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Riddhi ValechaPosted Apr 8, 2015, 8:13 AM
You can get data in a string variable and assign it to session..
Eg -
string s = string.empty;
for(int i = 0 ;i<=10;i++)
{
s += s + i.ToString() + "," ;
}
session["value"] = s;
-------
Are you willing to store multiple values like this ??
Abhishek KumarPosted Apr 8, 2015, 7:17 AM
Could you please brief more about the way you are adding to cart.?
Abhishek