Getting Same Request.UrlReferrer
<p>I have one page Result.aspx.this is main page of my website.
There are many images of proudcts in this pages.</p>

<p>When i click on image of product, it is redirected to DetailResult.aspx</p>

<p>Image Code is here:</p>

<pre><code>&lt;td&gt;
    &lt;a href="&lt;%#Eval("DetailsURL")%&gt;"&gt;
        &lt;asp:Image runat="server" ID="ImgThumb" Width="115" Height="81" /&gt;
    &lt;/a&gt;
&lt;/td&gt;
</code></pre>

<p>Now, On load event of DetailResult.aspx, i am getting runtime error for NullReferenceException(or any).</p>

<p>To handle runtime error, i have configured web.config with CustomErrors tag</p>

<p>CustomErrors Tag Code here:</p>

<pre><code>&lt;customErrors mode="On" defaultRedirect="~/Result.aspx?RunTimeError=1"&gt;

&lt;/customErrors&gt;
</code></pre>

<p>So the runtime error of DetailResult.aspx page redirects to Result.aspx.
In this case, on Result.aspx when i try to get previous page URL using Request.UrlReferrer, i am getting its value "Result.aspx" instead of "DetailResult.aspx"</p>
