Custom error page, aspxerrorpath, and original query string?

C

cephelo

Hello.

I have a customErrors section set up in my asp.net's web.config file.
All is fine and well when dealing with simple pages, e.g.,
/dir/pub/news/view.aspx, I get
error-404.aspx?aspxerrorpath=/dir/pub/news/view.aspx as expected.

How can I get the original query string? e.g., /dir/all.aspx?q=news. I
need the "q=news" part in the customError.

The only solution I found so far involves a massive custom error tool
(from MSDN) that hooks into the global file. That isn't exactly ideal
and is an extreme bit of overhead.

Surely this is built into ASP.NET. How can it not be? The referrer is
even empty on the custom error page.

I searched this and other groups (and google), to no avail.

Thanks

E. Brown
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top