How to add/remove/replace LIST in cookies using C#

Posted by MKS on Stack Overflow See other posts from Stack Overflow or by MKS
Published on 2011-02-07T07:18:33Z Indexed on 2011/02/07 7:25 UTC
Read the original article Hit count: 222

Filed under:
|

Hi Guys,

How can add/remove/replace LIST in cookies using C#.

//Declaring the List for image list

List<string> imageList = new List<string>();
foreach (FeaturedPromo promo in base.FeaturedPromos)
{
    imageList.Add(promo.ImageHref);
}

In above code, I have got a list with all the Image HREF values in it, Now I want to add these values in cookies using C#, after that I can remove that item from cookies and also replace the value with other value of same item in cookies.

Please suggest!

© Stack Overflow or respective owner

Related posts about c#

Related posts about cookies