ASP.net Request.UrlReferrer.Authority returning a object not set to reference of an object.
Posted on 2008-11-15
Here is the code:
Dim sPreviousURL = Request.UrlReferrer.Authority
If Not sPreviousURL = "" Then
Dim oSQLInsertDelete As SqlConnection = New SqlConnection("Connection")
Dim commandInsert As New SqlCommand("INSERT INTO Clean (InvalidCampaigns, Referrer) VALUES ('" & Request.QueryString("user") & "', '" & sPreviousURL & "')", oSQLInsertDelete)
The statement "Request.UrlReferrer.Authority" is returning the error message. I've tried to research it all over the internet and all the solutions have gone unsolved. I could really use some help. Thanks, Chris.