Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Controller.OnActionExecuting Method

Called before the action method is invoked.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
protected virtual void OnActionExecuting(
	ActionExecutingContext filterContext


Type: System.Web.Mvc.ActionExecutingContext
Information about the current request and action.

If this method is overridden in a derived Controller class, it will be called for every action method in the class. For more flexibility, derive a class from ActionFilterAttribute and override this method in the derived ActionFilterAttribute class.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.