Won't Let Me Write Cookie

response.cookies("blah")= myReader("PSMem")

It won't let me write a cookie.  :(

Error:

Compiler Error Message: BC30526: Property 'Item' is 'ReadOnly'.
LVL 1
net_susanAsked:
Who is Participating?
 
bsdotnetConnect With a Mentor Commented:
simply,
Response.Cookies("blah").Value = myReader("PSMem")
0
 
laotzi2000Commented:
Try this:

response.cookies.add(new HttpCookie("blah", myReader("PSMem")))
0
 
net_susanAuthor Commented:
>>Response.Cookies("blah").Value = myReader("PSMem")

Yeah, there was some other reason it wasn't writing it. After spending four hours on it, I slept on it and came up with another solution in five minutes. LOL
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.