Asp net mvc 2
Download
1 / 34

- PowerPoint PPT Presentation


  • 142 Views
  • Updated On :

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) {

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about '' - bess


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Asp net mvc 2 l.jpg

ASP.NET MVC 2

What’s in it for you?




Slide7 l.jpg

public InactionResult Activate(int id)

{

var item = _db.GetById(id);

item.Activate();

return Inaction();

}


Slide8 l.jpg

public void Activate(int id)

{

var item = _db.GetById(id);

item.Activate();

}





Repetition creates waste l.jpg
Repetition Creates Waste

Repetition Creates Waste

Repetition Creates Waste






But we really love our customers l.jpg
But we really love our customers


So we made mvc 2 with l.jpg
So We Made MVC 2 With…

  • More Productivity

  • More Security

  • More Performance

  • More Extensibility

  • More Happiness



What s going to make you more productive l.jpg
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 productive21 l.jpg
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 l.jpg
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 l.jpg
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 l.jpg
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


Slide25 l.jpg

Areas and RenderAction

Demo


What s going to make you more happy26 l.jpg
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




Slide29 l.jpg

  • 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


Slide30 l.jpg

  • 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 l.jpg
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


Slide34 l.jpg

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


ad