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
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