I'd like to capture the http referrer url following the rendering of a custom error page.
I have this set in my web.config
<customErrors mode="On">
<error statusCode="500" redirect="/StaticError.aspx" />
</customErrors>
In the OnLoad(EventArgs e) event -- I'm trying to do this, but it appears to be too late.
this.txtReferrer.Text = Request.UrlReferrer.ToString();
Is it possible to capture the referrer url?