This should be an easy one for someone, but it has me confused.
In INLINE script, how do I check if the user has a cookie on his machine?
If I use:
I get the follwong error:Code:<% If Request.Cookies("MyCookie") = "" then ................... End if %>
"System.NullReferenceException. Attempted to reference a null object reference" when there is no cookie.
How do I check for a cookie in .NET?




Reply With Quote