silverspark
09-18-2006, 08:26 PM
Im having a problem with my cookies, when I want to detect whether my cookie has no value in it I get the error System.NullReferenceException: Object reference not set to an instance of an object.
my code looks like this
If Request.Cookies.Item("usrpass").Value = "" Then
if the cookie has a value it will work fine, but as soon as I delete the cookie I get the error above...What am I doing wrong?
my code looks like this
If Request.Cookies.Item("usrpass").Value = "" Then
if the cookie has a value it will work fine, but as soon as I delete the cookie I get the error above...What am I doing wrong?