This code is in the Page_Load method of my web page.
if (Request.UrlReferrer.AbsolutePath == "/Home/Default.aspx")
{
Label1.Text = "You are coming from the home page.";
}
When I try to open the page, I get this error:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
The error occurs at the line marked in red in the code. I don't know how to fix it... help anyone please?