HI WELCOME TO Sirees

Part 69 - Action filters in mvc

Leave a Comment
What are action filters in asp.net mvc?
Action filters are attributes that can be applied either on a controller action method or on a controller. When applied at the controller level, they are applicable for all actions within that controller. Action filters allow us to add, pre and post processing logic to an action method. This means, they allow us to modify the way in which an action is executed.



Name a few action filters in mvc?
Authorize 
ChildActionOnly
HandleError
OutputCache 
RequireHttps
ValidateInput
ValidateAntiForgeryToken 

We will discuss each of these action filters in detail in our upcoming videos.

Can you create a custom action filter in mvc?
Yes

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.