Global Var
- From: "Uriah Piddle" <stephenprescott@xxxxxxx>
- Date: Tue, 29 May 2007 21:29:37 -0500
Hi Gang,
I need to persist error info between the Application_Error block in
Global.asax and the custom error page. I am trying to use the built-in
Application class. I am writing this code in the Application_Error block:
Application["errInfo"] = info;
Server.Transfer("~/Error.aspx")
When I try to access the "errInfo" object in Application, I get nothing.
Here is the code in Error.aspx:
info = (string)Application["errInfo"];
I can use the Application class in other parts of my project but it does not
seem to work when I use it in the Application_Error block. Thanks for any
ideas.
Steve
ps: any other ideas about how to get the info into Error.aspx?
.
- Follow-Ups:
- Re: Global Var
- From: Mark Rae
- Re: Global Var
- From: Uriah Piddle
- Re: Global Var
- Prev by Date: Re: ASP.Net Caching Questions
- Next by Date: Re: Global Var
- Previous by thread: Access to sql2005
- Next by thread: Re: Global Var
- Index(es):