Home > DeveloperSection > Forums > explain filters
ravi kumar

Total Post:9

Posted on    November-02-2011 12:20 AM


 1 Reply(s)
 1903  View(s)
Rate this:
please explain me How to use the filters in Mvc and how to work these filters in mvc2

Chris Anderson
Chris Anderson

Total Post:65

Posted on    November-02-2011 1:34 AM


Filtering in ASP.Net MVC:
In ASP.NET MVC, controllers define action methods that usually have a one-to-one relationship with possible user interactions, such as clicking a link or submitting a form. For example, when the user clicks a link, a request is routed to the designated controller, and the corresponding action method is called.

Sometimes you want to perform logic either before an action method is called or after an action method runs. To support this, ASP.NET MVC provides filters. Filters are custom classes that provide both a declarative and programmatic means to add pre-action and post-action behavior to controller action methods.

For more details you can refer this link:


Don't want to miss updates? Please click the below button!

Follow MindStick