Link to home
Start Free TrialLog in
Avatar of pippen
pippenFlag for United States of America

asked on

Send parameters to custom error page

I created a custom error page for an asp.net 2.0 site written in VB and I'm calling it from the web.config in <customerrors>  

We have a ticket variable that gets passed around to the various pages in the URL (HTTP, Get Variable), and I'm wondering if there is any way I can send this to the error page (without using session vars - this company doesn't want to use them). The reason is so that the user does not have to log in again after the are on the error page.

It should be in the Request.QueryString, and I tried grabbing it from that,  but I don't think it still exists by the time it gets passed over to the error page.

I know this is a weird one, but  I wanted to at least give it a try. I'm not finding anything  helpful through google search.

Also, I don't want to re-write all the try-catch phrases, because there are too many of them, but if you have ideas on that regard, I will save them for future reference when we redesign the site, and would consider giving partial points.
ASKER CERTIFIED SOLUTION
Avatar of ransommule
ransommule
Flag of Argentina image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pippen

ASKER

Thanks for the quick response. That might be an option when we totally redesign the site, but I'm not supposed to be using session vars for this current fix.
Avatar of pippen

ASKER

I don't think they would want to store this particular parameter in a database or file, just because it gets generated so often, but if I did want to do it that way, would I need to use the global.asax page to pull it?
You would retrieve it wherever you need it.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pippen

ASKER

I got sidetracked from this task, and have not verified that this is the exact solution down to the nitty gritty details, but it is definitely on the right track and a great help. Once it is implemented, I will try to remember to come back and make comments. Thanks!!!