Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm trying to use the Request.UrlReferrer.ToString() to get the referrer. It works but if you go straight to the page, meaning Request.UrlReferrer.ToString() is nothing, I get an Object instance not set to an instance of an object error. I tried..

 

 

       If Not IsPostBack Then
           If Not Request.UrlReferrer.ToString() Is Nothing Then
               referrer = Request.UrlReferrer.ToString()
           End If
       End If

 

I still got the same error. Any ideas?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...