converting cookie values

  • Thread starter Thread starter mike parr
  • Start date Start date
M

mike parr

I'm creating a cookie by this method :

HttpCookie objCookie = new HttpCookie(strCookieName);
Response.Cookies.Clear();
Response.Cookies.Add(objCookie);
objCookie.Values.Add(strCookieName, strCookieValue);

But when I read the cookie, I can't convert the value (strCookieValue)
to an integer. I get the error 'Input string was not in a correct
format'.


Can anybody help me out with this?


Thanks,

Mike
 
Thanks, I found a solution...I was reading the name-value pair instead
of just the value.


Mike
 
Back
Top