Hi
How can i add text in existsing cookie................? can any one tell me..
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.
Smart LuckyPosted Aug 9, 2011, 8:46 AM
Om prakash SinghPosted Aug 9, 2011, 6:21 AM
So you can use the value as
String str= Request.Cookies["Key1"].ToSting();
str= str+ " more value";
Response.Cookies["Key1"].Value = str;
VulpesPosted Aug 9, 2011, 4:49 AM
Satish BhatPosted Aug 9, 2011, 2:07 AM
So use
Response.Cookies["hidaya"]["Val1"] = value + " " + "Sql Server , Share Point Crystal Report";
Smart LuckyPosted Aug 9, 2011, 12:27 AM
i have write as
But it is not working..........................
Zoran HorvatPosted Aug 8, 2011, 6:59 AM
HttpCookie cookie = Request.Cookies["Something"];2. string prevValue = cookie["Data"];
3.
cookie["Data"]= prevValue + "; additional data";4. Response.Cookies.Add(cookie);
Zoran
VulpesPosted Aug 8, 2011, 6:57 AM
Smart LuckyPosted Aug 8, 2011, 6:50 AM
Zoran HorvatPosted Aug 8, 2011, 5:55 AM
2. Extract desired value from it
3. Calculate new value which is concantenation of previous value and new part
4. Set the same cookie with updated value.
Zoran