danieal103
New Member
I get this message "System.NullReferenceException: Object reference not set to an instance of an object" on line 47.<BR><BR>Line 47: If IsNothing(Request.Cookies("SFTCookies")("compNum")) Then<BR>Line 48: txtCompNum.Text = Request.Cookies("SFTCookies")("compNum")<BR>Line 49: End If<BR><BR>How do I fix this?I think you are getting the error message because the cookie doesn't exist. Try something like<BR><BR>if not(Request.Cookies("SFTCookies")("compNum") is DBNull.Value) then<BR> 'Code here<BR>end if