You are previewing Professional ASP.NET MVC 5.
O'Reilly logo
Professional ASP.NET MVC 5

Book Description

ASP.NET MVC insiders cover the latest updates to the technology in this popular Wrox reference

MVC 5 is the newest update to the popular Microsoft technology that enables you to build dynamic, data-driven websites. Like previous versions, this guide shows you step-by-step techniques on using MVC to best advantage, with plenty of practical tutorials to illustrate the concepts. It covers controllers, views, and models; forms and HTML helpers; data annotation and validation; membership, authorization, and security.

  • MVC 5, the latest version of MVC, adds sophisticated features such as single page applications, mobile optimization, and adaptive rendering

  • A team of top Microsoft MVP experts, along with visionaries in the field, provide practical advice on basic and advanced MVC topics

  • Covers controllers, views, models, forms, data annotations, authorization and security, Ajax, routing, ASP.NET web API, dependency injection, unit testing, real-world application, and much more

  • Professional ASP.NET MVC 5 is the comprehensive resource you need to make the best use of the updated Model-View-Controller technology.

    Table of Contents

    1. Chapter 1: Getting Started
      1. A QUICK INTRODUCTION TO ASP.NET MVC
      2. ASP.NET MVC 5 OVERVIEW
      3. INSTALLING MVC 5 AND CREATING APPLICATIONS
      4. THE MVC APPLICATION STRUCTURE
      5. SUMMARY
    2. Chapter 2: Controllers
      1. THE CONTROLLER'S ROLE
      2. A SAMPLE APPLICATION: THE MVC MUSIC STORE
      3. CONTROLLER BASICS
      4. SUMMARY
    3. Chapter 3: Views
      1. THE PURPOSE OF VIEWS
      2. VIEW BASICS
      3. UNDERSTANDING VIEW CONVENTIONS
      4. STRONGLY TYPED VIEWS
      5. VIEW MODELS
      6. ADDING A VIEW
      7. THE RAZOR VIEW ENGINE
      8. SPECIFYING A PARTIAL VIEW
      9. SUMMARY
    4. Chapter 4: Models
      1. MODELING THE MUSIC STORE
      2. SCAFFOLDING A STORE MANAGER
      3. EDITING AN ALBUM
      4. MODEL BINDING
      5. SUMMARY
    5. Chapter 5: Forms and HTML Helpers
      1. USING FORMS
      2. HTML HELPERS
      3. OTHER INPUT HELPERS
      4. RENDERING HELPERS
      5. SUMMARY
    6. Chapter 6: Data Annotations and Validation
      1. ANNOTATING ORDERS FOR VALIDATION
      2. CUSTOM VALIDATION LOGIC
      3. DISPLAY AND EDIT ANNOTATIONS
      4. SUMMARY
    7. Chapter 7: Membership, Authorization, and Security
      1. SECURITY: NOT FUN, BUT INCREDIBLY IMPORTANT
      2. USING THE AUTHORIZE ATTRIBUTE TO REQUIRE LOGIN
      3. USING AUTHORIZEATTRIBUTE TO REQUIRE ROLE MEMBERSHIP
      4. EXTENDING USER IDENTITY
      5. EXTERNAL LOGIN VIA OAUTH AND OPENID
      6. UNDERSTANDING THE SECURITY VECTORS IN A WEB APPLICATION
      7. PROPER ERROR REPORTING AND THE STACK TRACE
      8. SECURITY RECAP AND HELPFUL RESOURCES
      9. SUMMARY
    8. Chapter 8: Ajax
      1. JQUERY
      2. AJAX HELPERS
      3. CLIENT VALIDATION
      4. BEYOND HELPERS
      5. IMPROVING AJAX PERFORMANCE
      6. SUMMARY
    9. Chapter 9: Routing
      1. UNIFORM RESOURCE LOCATORS
      2. INTRODUCTION TO ROUTING
      3. INSIDE ROUTING: HOW ROUTES GENERATE URLS
      4. INSIDE ROUTING: HOW ROUTES TIE YOUR URL TO AN ACTION
      5. CUSTOM ROUTE CONSTRAINTS
      6. USING ROUTING WITH WEB FORMS
      7. SUMMARY
    10. Chapter 10: NuGet
      1. INTRODUCTION TO NUGET
      2. ADDING A LIBRARY AS A PACKAGE
      3. CREATING PACKAGES
      4. PUBLISHING PACKAGES
      5. SUMMARY
    11. Chapter 11: ASP.NET Web API
      1. DEFINING ASP.NET WEB API
      2. GETTING STARTED WITH WEB API
      3. WRITING AN API CONTROLLER
      4. CONFIGURING WEB API
      5. ADDING ROUTES TO YOUR WEB API
      6. BINDING PARAMETERS
      7. FILTERING REQUESTS
      8. ENABLING DEPENDENCY INJECTION
      9. EXPLORING APIS PROGRAMMATICALLY
      10. TRACING THE APPLICATION
      11. WEB API EXAMPLE: PRODUCTSCONTROLLER
      12. SUMMARY
    12. Chapter 12: Single Page Applications with AngularJS
      1. UNDERSTANDING AND SETTING UP ANGULARJS
      2. BUILDING THE WEB API
      3. BUILDING APPLICATIONS AND MODULES
      4. SUMMARY
    13. Chapter 13: Dependency Injection
      1. SOFTWARE DESIGN PATTERNS
      2. DEPENDENCY RESOLUTION IN MVC
      3. DEPENDENCY RESOLUTION IN WEB API
      4. SUMMARY
    14. Chapter 14: Unit Testing
      1. UNDERSTANDING UNIT TESTING AND TEST-DRIVEN DEVELOPMENT
      2. BUILDING A UNIT TEST PROJECT
      3. ADVICE FOR UNIT TESTING YOUR ASP.NET MVC AND ASP.NET WEB API APPLICATIONS
      4. SUMMARY
    15. Chapter 15: Extending MVC
      1. EXTENDING MODELS
      2. EXTENDING VIEWS
      3. EXTENDING CONTROLLERS
      4. SUMMARY
    16. Chapter 16: Advanced Topics
      1. MOBILE SUPPORT
      2. ADVANCED RAZOR
      3. ADVANCED VIEW ENGINES
      4. ADVANCED SCAFFOLDING
      5. ADVANCED ROUTING
      6. ADVANCED TEMPLATES
      7. ADVANCED CONTROLLERS
      8. SUMMARY
    17. Chapter 17: Real-World ASP.NET MVC: Building the NuGet.org Website
      1. MAY THE SOURCE BE WITH YOU
      2. WEBACTIVATOR
      3. ASP.NET DYNAMIC DATA
      4. EXCEPTION LOGGING
      5. PROFILING
      6. DATA ACCESS
      7. EF CODE–BASED MIGRATIONS
      8. DEPLOYMENTS WITH OCTOPUS DEPLOY
      9. AUTOMATED BROWSER TESTING WITH FLUENT AUTOMATION
      10. OTHER USEFUL NUGET PACKAGES
      11. SUMMARY
    18. Appendix: ASP.NET MVC 5.1
      1. ASP.NET MVC 5.1 RELEASE DESCRIPTION
      2. ENUM SUPPORT IN ASP.NET MVC VIEWS
      3. ATTRIBUTE ROUTING WITH CUSTOM CONSTRAINTS
      4. BOOTSTRAP AND JAVASCRIPT ENHANCEMENTS
      5. SUMMARY
    19. Foreword
    20. Introduction
      1. Who This Book Is For
      2. How This Book Is Structured
      3. What You Need to Use This Book
      4. Conventions
      5. Source Code
      6. Errata
      7. p2p.wrox.com
    21. Advertisement
    22. End User License Agreement