Professional ASP.NET MVC 4

Book description

An outstanding author team presents the ultimate Wrox guide to ASP.NET MVC 4

Microsoft insiders join giants of the software development community to offer this in-depth guide to ASP.NET MVC, an essential web development technology. Experienced .NET and ASP.NET developers will find all the important information they need to build dynamic, data-driven websites with ASP.NET and the newest release of Microsoft's Model-View-Controller technology. Featuring step-by-step guidance and lots of code samples, this guide gets you started and moves all the way to advanced topics, using plenty of examples.

  • Designed to give experienced .NET and ASP.NET programmers everything needed to work with the newest version of MVC technology

  • Expert author team includes Microsoft ASP.NET MVC insiders as well as leaders of the programming community

  • Covers controllers, views, models, forms and HTML helpers, data annotation and validation, membership, authorization, security, and routing

  • Includes essential topics such as Ajax and jQuery, NuGet, dependency injection, unit testing, extending MVC, and Razor

  • Includes additional real-world coverage requested by readers of the previous edition as well as a new case study example chapter

Table of contents

  1. Cover
  2. Chapter 1: Getting Started
    1. A Quick Introduction to ASP.NET MVC
    2. Creating an MVC 4 Application
    3. The MVC Application Structure
    4. Summary
  3. Chapter 2: Controllers
    1. The Controller's Role
    2. A Sample Application: The MVC Music Store
    3. Controller Basics
    4. Summary
  4. Chapter 3: Views
    1. The Purpose of Views
    2. Specifying a View
    3. Strongly Typed Views
    4. View Models
    5. Adding a View
    6. The Razor View Engine
    7. Specifying a Partial View
    8. Summary
  5. Chapter 4: Models
    1. Modeling the Music Store
    2. Scaffolding a Store Manager
    3. Editing an Album
    4. Model Binding
    5. Summary
  6. Chapter 5: Forms and HTML Helpers
    1. Using Forms
    2. HTML Helpers
    3. Other Input Helpers
    4. Rendering Helpers
    5. Summary
  7. Chapter 6: Data Annotations and Validation
    1. Annotating Orders for Validation
    2. Custom Validation Logic
    3. Display and Edit Annotations
    4. Summary
  8. Chapter 7: Membership, Authorization, and Security
    1. Using the Authorize Attribute to Require Login
    2. Using the Authorize Attribute to Require Role Membership
    3. Extending Roles and Membership
    4. External Login via OAuth and OpenID
    5. Understanding the Security Vectors in a Web Application
    6. Proper Error Reporting and the Stack Trace
    7. Security Recap and Helpful Resources
    8. Summary
  9. Chapter 8: Ajax
    1. jQuery
    2. Ajax Helpers
    3. Client Validation
    4. Beyond Helpers
    5. Improving Ajax Performance
    6. Summary
  10. Chapter 9: Routing
    1. Uniform Resource Locators
    2. Introduction to Routing
    3. Under the Hood: How Routes Generate URLs
    4. Under the Hood: How Routes Tie Your URL to an Action
    5. Custom Route Constraints
    6. Using Routing with Web Forms
    7. Summary
  11. Chapter 10: NuGet
    1. Introduction to NuGet
    2. Installing NuGet
    3. Adding a Library as a Package
    4. Creating Packages
    5. Publishing Packages
    6. Summary
  12. 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
  13. Chapter 12: Dependency Injection
    1. Software Design Patterns
    2. Dependency Resolution in MVC
    3. Dependency Resolution in Web API
    4. Summary
  14. Chapter 13: Unit Testing
    1. The Meaning of Unit Testing and Test-Driven Development
    2. Creating a Unit Test Project
    3. Tips and Tricks for Unit Testing ASP.NET MVC Applications
    4. Summary
  15. Chapter 14: Extending MVC
    1. Extending Models
    2. Extending Views
    3. Extending Controllers
    4. Summary
  16. Chapter 15: 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 16: 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. Membership
    9. Other Useful NuGet Packages
    10. Summary
  18. Foreword
  19. Introduction
  20. Advertisements

Product information

  • Title: Professional ASP.NET MVC 4
  • Author(s):
  • Release date: October 2012
  • Publisher(s): Wrox
  • ISBN: 9781118348468