Shay Friedman
Shay Friedman

Reputation: 4868

What's the difference between HttpContext.Handler and HttpContext.CurrentHandler?

I can't understand what is the difference between HttpContext.Handler and HttpContext.CurrentHandler.

Anyone?

Upvotes: 8

Views: 1202

Answers (1)

Anton
Anton

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

Related Questions