Okkkkkk,
Now this is starting to bug me. First off, don't do a Response.Write in lbl.text = 'code that is where the current error is coming from. Now on to the second (or first) error. I have this code setup on a page in Visual Studio:
Dim aCookie As New HttpCookie("lastVisit")
aCookie.Value = DateTime.Now.ToString
aCookie.Expires = DateTime.Now.AddDays(1)
Response.Cookies.Add(aCookie)
lbl.Text = Server.HtmlEncode(Request.Cookies("lastVisit").Val ue)
This will write out the current date and time to my label control if, however, I change Request.Cookies("lastVisit") to say, "aCookie" I get the Null Reference Error. So, what this tells me is that the cookie you are trying to access does not exist =
I don't know?
-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
^^Thats my signature
|