Request.UrlReferrer is null when redirected to that particular .aspx page
<p>After approve the customer I want to redirect to Admin_View_Customers.aspx page. For that purpose i wrote the following code.      </p>

<p>ScriptManager.RegisterStartupScript(this, GetType(), "message", "alert('The selected user has been Approved successfully.');location.href = 'Admin_View_Customers.aspx';", true);</p>

<p>But in the page load event of Admin_View_Customers.aspx i have wrote a code :</p>

<pre><code>if (Request.UrlReferrer == null)
            {
                Response.Redirect("AccessDenied.aspx");
            }
</code></pre>

<p>in order to avoid access to this page by copy  the url and paste it in another browser or another tab.My  problem is that I got the message <strong><em>The selected user has been Approved successfully.</em></strong> but it is redirected to AccessDenied.aspx NOT to the Admin_View_Customers.aspx. 
I am using ASP.NET with C#
Any Help will be appreciated</p>
