R
Ryan
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
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