how to show recently viewed item in a web page like flipkartsatyam sharma12yAsked May 16, 2014, 4:24 AM24.5k.NET
ADankit dixit9y agoPosted Nov 29, 2016, 5:01 AMinstead of deleting cookies, history , chache it show as it is recent viewed product. how it show0
Anupam Singh12y agoPosted May 16, 2014, 9:13 AMtry this//set multiple values usingHttpCookie cookie = new HttpCookie("cookie_collection");cookie.Values.Add("name", name);cookie.Values.Add("age", age);cookie.Values.Add("hobby", hobby);//get values using string name = response.Cookies["cookie_collection"]["name"];string age = response.Cookies["cookie_collection"]["age"];string hobby = response.Cookies["cookie_collection"]["hobby"];0
satyam sharma12y agoPosted May 16, 2014, 8:44 AMhello anupam, thanks a lot .but i m getting problem in storing multiple value in cookies. when m storing 2nd value then cookies is replacing previous value with 2nd one . so plz if u send me a code then it will be very helpful for me thanks satyam0
Anupam Singh12y agoPosted May 16, 2014, 5:34 AMHi Satyam, they generally use cookies from your system. You can also achieve same behavior using cookies0
ankit dixitPosted Nov 29, 2016, 5:01 AM
Anupam SinghPosted May 16, 2014, 9:13 AM
satyam sharmaPosted May 16, 2014, 8:44 AM
but i m getting problem in storing multiple value in cookies. when m storing 2nd value then cookies is replacing previous value with 2nd one . so plz if u send me a code then it will be very helpful for me
thanks
satyam
Anupam SinghPosted May 16, 2014, 5:34 AM