1 / 34

ASP.NET MVC 2

ASP.NET MVC 2. What’s in it for you?. MVC 2 Was Just Released!. 6 Releases!. Unfortunately, A Few of My Pet Features Were Cut. public InactionResult Activate( int id) { var item = _ db.GetById (id); item.Activate (); return Inaction(); }. public void Activate( int id) {

bess
Download Presentation

ASP.NET MVC 2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ASP.NET MVC 2 What’s in it for you?

  2. MVC 2 Was Just Released! 6 Releases!

  3. Unfortunately, A Few of My Pet Features Were Cut

  4. public InactionResult Activate(int id) { var item = _db.GetById(id); item.Activate(); return Inaction(); }

  5. public void Activate(int id) { var item = _db.GetById(id); item.Activate(); }

  6. Now that MVC 2 is out, you may be asking yourself… What’s in it for me?!

  7. Cash Money!

  8. What roadblocks stand between you and your money?

  9. Repetition Creates Waste Repetition Creates Waste Repetition Creates Waste

  10. Getting haax0red is very costly

  11. Inability To Bend The Framework To Your Will Wastes Money

  12. A Slow Site Makes Customers Unhappy and Miserly

  13. All These Things Drain Your Cash Flow and Happiness

  14. But we really love our customers

  15. So We Made MVC 2 With… • More Productivity • More Security • More Performance • More Extensibility • More Happiness

  16. That, In A Nutshell Is What’s In It For You

  17. What’s going to make you more productive? • Strongly Typed Helpers • Intellisense support for common tasks • Helps wire up UI to validation • Templated Helpers • Provides runtime scaffolding • Built in editor and display templates

  18. What’s going to make you more productive? • Validation • Data Annotations based validation • Client validation based on data annotations • Tooling Improvements • Keyboard Shortcuts • Code Snippets

  19. What’s going to make you more secure? • Auto HTML Encoding • New <%: syntax %> • JsonResult Secure By Default • Does not respond to GET by default • AntiForgery (CSRF) Improvements • Better protection for sites on same domain but different subdomains

  20. What’s going to make your application a speed demon? • AsyncController • Allows calling into external services in a non-blocking manner • Based on the Async Event Pattern: ActionAsync and ActionCompleted • Performance tuning throughout the framework

  21. What’s going to make you more happy? • Areas • Keep large projects well organized • Add area dialog • RenderAction • Call into an action method from a view • Reuse bits of UI in a multiple views • Empty Project Template • Contains a minimal ASP.NET MVC project • By Popular Demand

  22. Areas and RenderAction Demo

  23. What’s going to make you more happy? • Open Source • The Source Code is available • Includes jQuery and jQuery Validation • Project Upgrade Wizard • Make it easy to upgrade from ASP.NET MVC 1 • Multitude of other small improvements based on your feedback

  24. Upgrade Wizard Demo

  25. ASP.NET MVC Built With A Focus on Transparency

  26. Heavy community involvement • Forums • Twitter, Blogs, CodePlex, StackOverflow • Ship early and often • Trying out new ideas • Functional project template • Includes unit tests (2140 with 94% code coverage) and source on CodePlex

  27. Releasing Open Source • Source released under the Ms-PL License • MVC Contrib Joins the ASP.NET Gallery Code Plex Foundation • Contributing To Open Source • T4MVC Contributed to MVC Contrib • Gallery Paves

  28. The Excitement Continues on The Road to ASP.NET MVC 3

  29. Thank You! • http://www.asp.net/mvc/ • http://www.codeplex.com/MVCContrib/ • http://haacked.com/ • http://weblogs.asp.net/scottgu/ • http://forums.asp.net/1146.aspx

  30. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

More Related