---
title: "explain filters"  
description: "explain filters"  
author: "ravi kumar"  
published: 2011-11-02  
updated: 2011-11-02  
canonical: https://www.mindstick.com/forum/341/explain-filters  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 1 minute  

---

# explain filters

[please explain](https://www.mindstick.com/forum/344/hi-rohith-i-am-new-for-mvc-please-explain-how-to-set-implicitly-isauthenticated-true) me How to use the [filters](https://www.mindstick.com/forum/156119/how-to-use-filters-in-angularjs) in [Mvc](https://www.mindstick.com/forum/155803/define-cache-profile-in-mvc) and how to work these filters in mvc2

## Replies

### Reply by Chris Anderson

Hi,\
\
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:

[http://msdn.microsoft.com/en-us/library/gg416513(v=vs.98).aspx](http://msdn.microsoft.com/en-us/library/gg416513(v=vs.98).aspx)

\


---

Original Source: https://www.mindstick.com/forum/341/explain-filters

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
