ASP.NET MVC Reading July 2009

  • 1,469 views
Uploaded on

ASP.NET MVC presentation given by Scott Guthrie at Vista Squad user group meeting at Microsoft UK on 3rd July 2009

ASP.NET MVC presentation given by Scott Guthrie at Vista Squad user group meeting at Microsoft UK on 3rd July 2009

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,469
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
3

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. ASP.NET MVC
    Scott Guthrie
    Corporate Vice President
    Developer Division – Microsoft
    scottgu@microsoft.com
    http://weblogs.asp.net/scottgu
  • 2. All in the Family
    ASP.NET
    Dynamic Data
    & AJAX
    Presentation
    ASP.NET
    WebForms
    ASP.NET
    MVC
    ASP.NET
    Core
    Core
    Runtime
  • 3. ASP.NET MVC
    More control over your <html/>
    Intuitive website URLs
    Client side JavaScript integration
    Testability and TDD support
    Not for everyone
    Manual vs. automatic transmission
  • 4. ASP.NET WebForms 4 improvements…
    Client ID control
    Granular viewstate control
    Routing integration
    CSS based rendering
    Databinding improvements
    Control enhancements
    Much more
    http://www.asp.net/learn/whitepapers/aspnet40
  • 5. www.asp.net/mvc
  • 6. File->New Project
    Code
  • 7. ASP.NET MVC maps incoming URLs to
    Action methods on Controller classes
  • 8. SimpleController
    Code
  • 9. “Separation of Concerns”
  • 10. Controllerscanpass data to View templatesto render a response back to a client
  • 11. Using a View Template
    Code
  • 12. Model refers to the objects that represent the data of the application and the corresponding validation and domain logic
  • 13. Create a ModelImplement ProductsController
    Code
  • 14. Routes rules enable flexible publishing of SEO URLs
  • 15. Custom Route Rule
    Code
  • 16. A service layer can help encapsulate an application’s business logic and data operations
  • 17. Service Layer
    Code
  • 18. CRUD = Create, Read, Update and Delete
  • 19. CRUD
    Code
  • 20. “Skinny Controllers”
    with “Fat Models”
  • 21. Validation
    Code
  • 22. Action Filters support declaratively applying re-usable logic to controllers and action methods
  • 23. [Authorize] Filter
    Code
  • 24. Automated Unit Tests enable coding with confidence
  • 25. Unit Testing (Part 1)
    Code
  • 26. Dependency Injection:“Don’t call us, we’ll call you”
  • 27. Unit Testing (Part 2):No database required
    Code
  • 28. Summary
    More control over your <html/>
    Intuitive website URLs
    Client side JavaScript integration
    Testability and TDD support
    Works with VS 2008 and .NET 3.5 today
    Will be a built-in option with VS 2010
    Visit http://www.asp.net/mvc to learn more
  • 29. © 2009 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.