ASP.NET MVC 3

of 23 /23
TECH ED ON THE ROAD .

Embed Size (px)

Transcript of ASP.NET MVC 3

  1. 1. TECH ED ON THE ROAD
    .
  2. 2. EXPLORING ASP.NET MVC 3
    Shravan Kumar
    http://theshravan.net
    Thomson Reuters
  3. 3. Agenda
    What's new in ASP.NET MVC3 ?
    What's new in ASP.NET MVC3 Tools Update?
  4. 4. Multiple View Engine Support

    @Razor
  5. 5. The RazorView Engine
    • Razor syntax is clean and concise
    • 6. Requiring a minimum number of keystrokes
    • 7. Razor is easy to learn
    • 8. Visual Studio includes IntelliSense and code colorization for Razor syntax.






    • @for (int i = 0; i < 10; i++) {
    • @i
      }

  6. 9. Demo
    Razor
    @{new ViewEngine();}
  7. 10. Controller Improvements
    • Global Action Filters
    • 11. New "ViewBag" Property
    • 12. New "ActionResult" Types
  8. Demo
    Controller Improvements
  9. 13. Model Validation Improvements
    • "DataAnnotations" Metadata Attributes
    • 14. "ValidationAttribute" Class
    • 15. Validation Interfaces
    • 16. IValidatableObject
    • 17. IClientValidatable
  10. JavaScript and Ajax Improvements
    • Ajax and validation helpers in MVC 3 use an unobtrusive JavaScript approach.
    • 18. Client-Side Validation Enabled by Default
    • 19. Remote Validator
    • 20. JSON Binding Support
  11. Demo
    Model Validation and JavaScriptImprovements
  12. 21. Dependency Injection Improvements
  13. 22. Demo
    Dependency Injection Improvements
  14. 23. What else?
    • NuGet Integration
    • 24. Partial-Page Output Caching
    • 25. Granular Control over Request Validation
    • 26. Sessionless Controller Support
  15. ASP.NET MVC 3 Tools Update
    • ASP.NET MVC 3 RTM (January 13, 2011)
    • 27. ASP.NET MVC 3 Tools Update (April 12, 2011)
    NO RUNTIME CHANGES IN ASP.NET MVC 3 TOOLS UPDATE
  16. 28. ASP.NET MVC 3 (before)
  17. 29. ASP.NET MVC 3 (after)
  18. 30. Whats new inAsp.NET MVC 3 tools update
    • Scaffolding with extensibility via NuGet
    • 31. Intranet Project Template
    • 32. HTML 5 Enabled Project Templates
    • 33. Pre-Installed NuGet Packages
    • 34. Modernizr
    • 35. EF Code First
    • 36. jQuery 1.5.1
    • 37. jQuery Validation 1.8.0
    • 38. jQuery UI 1.8.11
  19. Refer to:
    • http://asp.net/mvc/mvc3/
    • 39. http://haacked.com
    • 40. http://weblogs.asp.net/scottgu/
    • 41. http://hanselman.com/
  20. Thank You!
  21. 42. [email protected]@techieshravanhttp://theshravan.net
  22. 43. No Questions