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:
Code:
<%
  If Request.Cookies("MyCookie") = "" then
    ...................
  End if
%>
I get the follwong error:
"System.NullReferenceException. Attempted to reference a null object reference" when there is no cookie.

How do I check for a cookie in .NET?