filters in mvc

2
1. AUTHENTICATION FILTERS (INTRODUCED IN MVC5) 2. AUTHORIZATION FILTERS 3. ACTION FILTERS 4. RESULT FILTERS 5. EXCEPTION FILTERS Filters in MVC

Upload: lokesh

Post on 10-Nov-2015

3 views

Category:

Documents


0 download

DESCRIPTION

Filters in MVC

TRANSCRIPT

Filters in MVC

Authentication filters (introduced in mvc5)Authorization filtersAction filtersResult filtersException filtersFilters in MVCHandle Error AttributeBuilt in Exception FilterThis class is derived from IExceptionFilter InterfaceAdded to Global Filters in Global.asax file by defaultAsp.net MVC3 supports global Filters(It will be applied to all actions in web application)It Represents an Attribute that is used to handle exception thrown by an action methodPossible to customize the error handling