Articles : Page 1 of 1
- Filter:
- BestPractise
-
ActionFilter Overkill
Jul 1002We've seen not one, but two posts this week where we used an ActionFilter as the solution to a problem. ActionFilters are powerful. ActionFilters can inspect and modify action parameters and action results. They can cover almost any cross-cutting concern in ASP.NET MVC: caching, security, auditing, etc. But, should you use them everywhere?...
-
ASP.NET MVC Best Practice - Leverage the Microsoft CDN
Oct 0929Another best practice ( or at least good idea ) is to use the Microsoft CDN for MVC scripts....
-
MVC Best Practices
Oct 0928Simone has a great post (as usual) on 12 ASP.NET MVC Best Practices: Controller: 1 - Delete the AccountController 2 - Isolate controllers from the outside world 3 - Use an IoC Container 4 - So NO to “magic strings” 5 - Build your own personal conventions 6 - Pay attention to the verbs Model: 7 – Domain Model != ViewModel 8 – Use ActionFilters for “shared” data View: 9 – NEVER use code-behind 10 – Write HTML each time you can 11 – If there is an if, write an HtmlHel...
-
ASP.NET MVC Namespaces in Web.config instead of Views - ASP.NET MVC Best Practices
Oct 0913Move the namespaces from your ASP.NET MVC Views to the Web.config....
- 1

