Hi
I have vb.net code writing the cookie
as
Request.Cookies("TRACK")("PCODE")
How will I get the cookie value in c#?
Is it like Request.Cookies["TRACK"]["PCODE"]
Cheers,
Printable View
Hi
I have vb.net code writing the cookie
as
Request.Cookies("TRACK")("PCODE")
How will I get the cookie value in c#?
Is it like Request.Cookies["TRACK"]["PCODE"]
Cheers,
Wow, this is very wierd. Why? I just had the exact same issue and had to figure out, for another programmer in my department, how to read cookies in C#.
Fortunately, one of my favorite C# websites (csharphelp.com) had an article on it.
Take a look at this
Thanks for the above link
But it did not say how it will get the value from cookie collection.
I understand i can use
Request.Cookies["TRACK"].Value
but it is not really working for the vb equvalent code which i mentioned in my first post.
Listing 3.3 on that link shows how to read the cookie. Isn't that what you are after?
----never mind, incorrect----