Called when a request matches this controller, but no method with the specified action name is found in the controller.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
A Visual Studio project with source code is available to accompany this topic: Download.
The following example shows how to render views that do not have a matching ActionResult method. For example, if you have a Details.aspx view but no corresponding method exists that returns an ActionResult instance, the following example displays the Details view when a request to for the Details action is made on the controller. If there is no matching view, the error page displays a message. This example shows one way to use the method. Action methods are not required to return an ActionResult object.