Hi all
I am using the following cmd in the post-back section of my page to identify what page I came from. Here is the code that I am using:
I am however getting the following error: "Object reference not set to an instance of an object". I cant understand what is causing the error, as when the page is called from another page it works perfectly. Any suggestions? I have a sample application using the smae code and there is no problem.
Could it be anything to do with the fact that I am using the asp.net 2.0 menu control to redirect the user?
Mike55.
I am using the following cmd in the post-back section of my page to identify what page I came from. Here is the code that I am using:
Code:
If Not Page.IsPostBack Then
ViewState("ReferenceURL") = Request.UrlReferrer.ToString
end if
I am however getting the following error: "Object reference not set to an instance of an object". I cant understand what is causing the error, as when the page is called from another page it works perfectly. Any suggestions? I have a sample application using the smae code and there is no problem.
Could it be anything to do with the fact that I am using the asp.net 2.0 menu control to redirect the user?
Mike55.
Last edited by a moderator: