help with error message

Results 1 to 2 of 2

Thread: help with error message

  1. #1
    Join Date
    Dec 1969

    Default help with error message

    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?

  2. #2
    Join Date
    Dec 1969

    Default RE: help with error message

    I think you are getting the error message because the cookie doesn&#039;t exist. Try something like<BR><BR>if not(Request.Cookies("SFTCookies")("compNum") is DBNull.Value) then<BR> &#039;Code here<BR>end if

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts