340 likes | 533 Views
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) {
E N D
ASP.NET MVC 2 What’s in it for you?
MVC 2 Was Just Released! 6 Releases!
public InactionResult Activate(int id) { var item = _db.GetById(id); item.Activate(); return Inaction(); }
public void Activate(int id) { var item = _db.GetById(id); item.Activate(); }
Now that MVC 2 is out, you may be asking yourself… What’s in it for me?!
Repetition Creates Waste Repetition Creates Waste Repetition Creates Waste
So We Made MVC 2 With… • More Productivity • More Security • More Performance • More Extensibility • More Happiness
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
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
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
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
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
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
Upgrade Wizard Demo
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
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
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
© 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.