Action Filtersallow usto add pre-action and post-action behavior to controller action methods.. An action filter is an attribute that you can apply to a controller action --or an entire controller -- that modifies the way in which the action is executed. The ASP.NET MVC framework includes several action filters:
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Action Filters allow us to add pre-action and post-action behavior to controller action methods.. An action filter is an attribute that you can apply to a controller action -- or an entire controller -- that modifies the way in which the action is executed. The ASP.NET MVC framework includes several action filters: