Top "Action-filter" questions

In ASP.

Returns from OnActionExecutionAsync without executing the action in asp.net core

Here I want to return from the custom action filter without executing the controller action method in asp.net core …

c# asp.net-core-mvc action-filter custom-action-filter onactionexecuting
async action filter: Async & AuthorizeAttribute in ASP.NET WEB API

I have my authentication logic in a class, derived from System.Web.Http.AuthorizeAttribute (overridden OnAuthorization method). I make a …

asp.net-web-api async-await action-filter
ASP.NET MVC ActionFilter - Determine if AJAX Request

I am using an ActionFilter to determine if a user has access to a specific resource such as an Account …

asp.net-mvc-3 action-filter
Run a method before each Action in MVC3

How can we run a method before running each Action in MVC3? I know we can use the following method …

c# asp.net asp.net-mvc-3 action-filter
What methods are available to stop multiple postbacks of a form in ASP.NET MVC?

A common web problem is where a user clicks the submit button of a form multiple times so the server …

asp.net-mvc postback submit action-filter
ASP.NET MVC finding the current username in a custom action filter

I am creating a custom action filter for asp.net MVC. In the OnActionExecuting() method. public override void OnActionExecuting(ActionExecutingContext …

asp.net-mvc action-filter