B
buran
Dear ASP.NET Programmers,
I want to store the referring page of an .aspx page so that I can redirect
the user back to the referring page if needed. I am using the following code
snippet but receiving Object reference not set to an instance of an object
error. The code is as follows:
If Not Page.IsPostBack Then
Viewstate("ReferrerURL") = Request.UrlReferrer.ToString()
LoadData()
End If
Why am I receiving this error? Thanks in advance...
Buran
I want to store the referring page of an .aspx page so that I can redirect
the user back to the referring page if needed. I am using the following code
snippet but receiving Object reference not set to an instance of an object
error. The code is as follows:
If Not Page.IsPostBack Then
Viewstate("ReferrerURL") = Request.UrlReferrer.ToString()
LoadData()
End If
Why am I receiving this error? Thanks in advance...
Buran