Articles : Page 1 of 1

  • ActionFilter Overkill

    ActionFilter Overkill

    Jul 10
    02

    We'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

    ASP.NET MVC Best Practice - Leverage the Microsoft CDN

    Oct 09
    29

    Another best practice ( or at least good idea ) is to use the Microsoft CDN for MVC scripts....

    • BestPractise

  • MVC Best Practices

    MVC Best Practices

    Oct 09
    28

    Simone 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...

    • BestPractise

  • ASP.NET MVC Namespaces in Web.config instead of Views - ASP.NET MVC Best Practices

    ASP.NET MVC Namespaces in Web.config instead of Views - ASP.NET MVC Best Practices

    Oct 09
    13

    Move the namespaces from your ASP.NET MVC Views to the Web.config....

    • BestPractise


  • 1