C# Class Candor.Web.Mvc.Filters.FormPostActionSelectorAttribute

Matches a controller action method to a post from another action where the attributed action is the name of a button on the form.
Variation from source article: http://blog.ashmind.com/2010/03/15/multiple-submit-buttons-with-asp-net-mvc-final-solution/
Inheritance: System.Web.Mvc.ActionNameSelectorAttribute
Show file Open project: michael-lang/candor-common

Public Methods

Method Description
FormPostActionSelectorAttribute ( ) : System

Creates a new instance.

IsValidName ( System.Web.Mvc.ControllerContext controllerContext, string actionName, System methodInfo ) : bool

Determines if the current request matches this method.

Method Details

FormPostActionSelectorAttribute() public method

Creates a new instance.
public FormPostActionSelectorAttribute ( ) : System
return System

IsValidName() public method

Determines if the current request matches this method.
public IsValidName ( System.Web.Mvc.ControllerContext controllerContext, string actionName, System methodInfo ) : bool
controllerContext System.Web.Mvc.ControllerContext
actionName string
methodInfo System
return bool