Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Why Cool Kids Rock With ASP.NET MVC

Why Cool Kids Rock With ASP.NET MVC

Fanie Reynders

July 17, 2012
Tweet

More Decks by Fanie Reynders

Other Decks in Programming

Transcript

  1. AGENDA • What is MVC? • Why MVC? • The

    Razor Engine • Validation & Mappings • Security • Q & A
  2. WHY MVC? • Clean HTML source & routes (SEO) –

    no view state • Extensible • Decoupled design for better unit testing (TDD) • More control & clever Caching • Multiple view engines (e.g. Razor, ASPX, Spark, NHaml) • Leverage existing ASP.NET platform • HTML 5 compatible including unobtrusive JavaScript • Dependency Injection • Ajax Validation on by default
  3. THE RAZOR VIEW ENGINE • Compact, expressive & fluid •

    Easy to learn • Not new language • Works with any text editor • Unit testable
  4. VALIDATION WITH ANNOTATIONS • Customized validation • Custom Attributes •

    IValidatableObject (self validation) • RemoteAttribute
  5. SECURITY • Supports Windows & Forms Authentication • Prevents XSS

    (AntiXSS Library) • Prevents CSRF (AntiForgeryToken)