Tuesday, May 28, 2013

MVC Links : Types of filters and other misc tech info

MVC

http://www.codeproject.com/Articles/577776/AplusBeginner-27splusTutorialplusforplusUnderstand


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

IAuthorizationFilter.OnAuthorization
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.

===============

http://www.dotnet-tricks.com/Tutorial/mvc/4XDc110313-return-View()-vs-return-RedirectToAction()-vs-return-Redirect()-vs-return-RedirectToRoute().html

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

================

http://www.dotnet-tricks.com/Tutorial/mvc/Q8V2130113-RenderPartial-vs-RenderAction-vs-Partial-vs-Action-in-MVC-Razor.html

RenderPartial vs RenderAction vs Partial vs Action in MVC Razor

================

No comments:

Post a Comment