Paul, please see my other post as well "Non persistent page cache". It
contains the entire class (as the class name NonPersistentPageCache).
I use the class like so:
class MyPage : System.Web.UI.Page
{
Page_Load(..)
{
NonPersistentPageCache.Cache["asdf"] = "hi";
}
txtEmployeeNumber_OnPreRender(...)
{
string s = NonPersistentPageCache.Cache["asdf"];
}
}
-Ryan
"Paul Glavich" <gl**@aspalliance.com-NOSPAM> wrote in message
news:eW****************@TK2MSFTNGP12.phx.gbl...
In what module is the code below? ie. Is it also in the Global.asax code
behind and where do you call it from to associate the event to your
delegate method?
--
- Paul Glavich
"Ryan" <no****@nospam.net> wrote in message
news:et**************@TK2MSFTNGP12.phx.gbl... I'm having trouble hooking the EndRequest event of the application, my
code looks like this:
class NeedsToTrapEndRequest {
static Hashtable _hash;
static public void CreateHash() {
_hash = new Hashtable();
HttpContext.Current.ApplicationInstance.EndRequest += new
EventHandler(OnEndRequest);
}
static OnEndRequest(object sender, EventArgs e) {
}
}
The problem is that OnEndRequest never gets called. What am I missing
here?
Thanks, Ryan