I am trying to get where the referral url came from where a visitor would have came from. So here is my code for my function:
Public Function Referralurl() As String
Dim referringurl As String
referringurl = Request.UrlReferrer.AbsolutePath
If referringurl = Nothing Then
referringurl = "Nothing"
Immediately after I start my program, I get the error code: "Object Instance not set to an instance of an object on the line where it states the following:
Object reference not set to an instance of an object.
What can I do to fix this problem? Thank you!