T
tascien
I cannot believe that this code causes an error:
Dim MyCookie as string = Request.Cookies("Email").Value
Object reference not set to an instance of an object.
If the cookie is found, it works, if the cookie is not found, the error
above is triggered. and i can't just do this:
Dim MyCookie as string = Request.Cookies("Email")
Value of type 'System.Web.HttpCookie' cannot be converted to 'String'.
So, how do you check for cookies? Keeping in mind that the cookie may
exist, or not...
Thanks.
Dim MyCookie as string = Request.Cookies("Email").Value
Object reference not set to an instance of an object.
If the cookie is found, it works, if the cookie is not found, the error
above is triggered. and i can't just do this:
Dim MyCookie as string = Request.Cookies("Email")
Value of type 'System.Web.HttpCookie' cannot be converted to 'String'.
So, how do you check for cookies? Keeping in mind that the cookie may
exist, or not...
Thanks.