|
-
Feb 6th, 2006, 12:13 PM
#1
Thread Starter
Member
Cookies
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,
-
Feb 6th, 2006, 12:18 PM
#2
Re: Cookies
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
-
Feb 6th, 2006, 12:39 PM
#3
Thread Starter
Member
Re: Cookies
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.
-
Feb 6th, 2006, 01:03 PM
#4
Re: Cookies
Listing 3.3 on that link shows how to read the cookie. Isn't that what you are after?
-
Feb 6th, 2006, 01:03 PM
#5
Fanatic Member
Re: Cookies
----never mind, incorrect----
Last edited by grilkip; Feb 6th, 2006 at 01:07 PM.
"so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|