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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Zoran HorvatRank #792 · 2.9K reputationPosted Aug 8, 2011, 1:55 AM EDT
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
Smart LuckyRank #2,625 · 531 reputationPosted Aug 8, 2011, 2:50 AM EDT
VulpesRank #55 · 29.2K reputationPosted Aug 8, 2011, 2:57 AM EDT
Zoran HorvatRank #792 · 2.9K reputationPosted Aug 8, 2011, 2:59 AM EDT
HttpCookie cookie = Request.Cookies["Something"];2. string prevValue = cookie["Data"];
3.
cookie["Data"]= prevValue + "; additional data";4. Response.Cookies.Add(cookie);
Zoran
Smart LuckyRank #2,625 · 531 reputationPosted Aug 8, 2011, 8:27 PM EDT
i have write as
But it is not working..........................
Satish BhatRank #2,496 · 563 reputationPosted Aug 8, 2011, 10:07 PM EDT
So use
Response.Cookies["hidaya"]["Val1"] = value + " " + "Sql Server , Share Point Crystal Report";
VulpesRank #55 · 29.2K reputationPosted Aug 9, 2011, 12:49 AM EDT
Om prakash Singh126 reputationPosted Aug 9, 2011, 2:21 AM EDT
So you can use the value as
String str= Request.Cookies["Key1"].ToSting();
str= str+ " more value";
Response.Cookies["Key1"].Value = str;
Smart LuckyRank #2,625 · 531 reputationPosted Aug 9, 2011, 4:46 AM EDT