Reputation: 4868
I can't understand what is the difference between HttpContext.Handler and HttpContext.CurrentHandler.
Anyone?
Upvotes: 8
Views: 1202
Reputation: 4584
MSDN:
The currently executing handler that is referenced by the CurrentHandler property might be different than the handler that is referenced by the Handler property. This can occur when another handler was requested by using the Execute method or the Transfer method. When the currently executing handler finishes processing, the previously determined handler is restored.
Upvotes: 6