This seems very odd. I have declared the variable referrer as a global variable. Why do I get this with the Referrer variable? This page is accessed via a form on another website. It sends the http POST to this page. I was able to publish this to my live site, but for some reason vs is now giving me this error and caughing on this.
Dim referrer As String = ""
' Dim urllist As New array
'Web Crawler object
Private WithEvents m_wcSpider As New Charlotte.WebCrawler()
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
'get all the data from the request
SiteFuncs.GetRequestedVar(web_categ, "web_categ", "0")
SiteFuncs.GetRequestedVar(web_recip, "web_recip", "")
SiteFuncs.GetRequestedVar(resubmit, "resubmit", "")
'check banned site database
referrer = Request.ServerVariables("HTTP_REFERER").ToString
Dim refer As New System.Uri(referrer)
Dim tblwebsiteadapter As New tblWebSiteTableAdapter
Object reference not set to an instance of an object.
View Complete Post