Response.Cookies["prodet"]["prodet_id"] += Request.QueryString["product_id"].ToString(); Response.Cookies["prodet"]["Size"] += drsize.SelectedValue; Response.Cookies["prodet"]["Color"] += drcolor.SelectedValue; Response.Cookies["prodet"]["Quantity"] += drquantity.SelectedValue + ","; string str1 = Request.Cookies["prodet"].Value;
Hi itsjayshah,
Refer below links.
AnandM says: Hi itsjayshah, Refer below links. Saving multiple values (data) in Cookies in ASP.Net using C# and VB.Net How to save and retrieve Cookie as single cookie or Collection of cookies in ASP.Net MVC
this link is not usefull for me
once data is get to cookies but another time it will blank and get new data of the new product i want colloection of product in cookies
Can you please explain your requirement in more detail what exactly you are trying to achieve?
hi AnandM ,
Response.Cookies["prodet_id"]
this is my cookies of product_id i want to store multiple product id in this cookie with ',' seprated
Can you please explain your requirement with a scenario that how you are accessing the productId and how you are getting the multiple productIds.
If possible explain with an example.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.