tags:

views:

76

answers:

1

Is there a "global" OnActionExecuting that I can override to have all my MVC actions (regardless of controller) do something when they get called? If so, how?

+2  A: 

Nope. The easiest way to do this is to write a common base class that all of your controller types subclass, then stick an action filter on that base class or override its OnActionExecuting() method.

Levi
...of course, it all depends on what need's to be done.
David Andres