Tuesday, May 28, 2013

MVC Links : Types of filters and other misc tech info



Type of filters

Now taking this discussion further, Let us first discuss the various types of filters that can be implemented to inject custom processing logic.
 • Authorization filter
• Action filter
• Result filter
• Exception filter

Order of Execution

2. IActionFilter.OnActionExecuting
3. IActionFilter.OnActionExecuted
4. IResultFilter.OnResultExecuting
5. IResultFilter.OnResultExecuted

In case there is an exception, OnException will will be called as instead of the result filters.



return View() vs return RedirectToAction() vs return Redirect() vs return RedirectToRoute()



RenderPartial vs RenderAction vs Partial vs Action in MVC Razor


No comments:

Post a Comment