Mystery Error

  • Thread starter Thread starter Todd Plambeck
  • Start date Start date
T

Todd Plambeck

I have a website with about 100 users. They all seem to work fine except
one. When they go from the main page to a page containing a webgrid
containing delivery addresses, an error is thrown. Here's the code that
causes the error:

' Store URL Referrer
ViewState("UrlReferrer") = Request.UrlReferrer.ToString()

Here's the error description:Object reference not set to an instance of an
object.

They are using IE 6 and it happens on all the PC's in their office. Any
ideas what would cause this not to work on just this one customer?

Thanks,

Todd
 
Hi Todd,
You should check that UrlReferrer is not null before trying to call
ToString() on it.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.
 
Back
Top