This topic has not yet been rated - Rate this topic

Controller.ExecuteCore Method

Invokes the action in the current controller context.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
protected override void ExecuteCore()

This method is called by ASP.NET MVC to process a request; it cannot be called directly. This method can be overridden if you derive from the Controller class. If you override this method, call the base control's ExecuteCore method.

The following example shows how to override the ExecuteCore method.

protected override void ExecuteCore() {
   ActionInvoker = new CustomActionInvoker();
   base.ExecuteCore();
}
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.