Pro ASP.NET MVC 4 [electronic resource] /
Freeman, Adam.author.
Sanderson, Steven.author.
The ASP.NET MVC 4 Framework is the latest evolution of Microsoft’s ASP.NET web platform. It provides a high-productivity programming model that promotes cleaner code architecture, test-driven development, and powerful extensibility, combined with all the benefits of ASP.NET. ASP.NET MVC 4 contains a number of significant advances over previous versions. New mobile and desktop templates (employing adaptive rendering) are included together with support for jQuery Mobile for the first time. New display modes allow your application to select views based on the browser that's making the request while Code Generation Recipes for Visual Studio help you auto-generate project-specific code for a wide variety of situtations including NuGet support. In this fourth edition, the core model-view-controller (MVC) architectural concepts are not simply explained or discussed in isolation, but are demonstrated in action. You’ll work through an extended tutorial to create a working e-commerce web application that combines ASP.NET MVC with the latest C# language features and unit-testing best practices. By gaining this invaluable, practical experience, you’ll discover MVC’s strengths and weaknesses for yourself—and put your best-learned theory into practice. The book's authors, Steve Sanderson and Adam Freeman, have both watched the growth of ASP.NET MVC since its first release. Steve is a well-known blogger on the MVC Framework and a member of the Microsoft Web Platform and Tools team. Adam started designing and building web applications 15 years ago and has been responsible for some of the world's largest and most ambitious projects. You can be sure you are in safe hands.
Title Page; Copyright Page; Dedication Page; Contents at a Glance; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; PART 1 Introducing ASP.NET MVC 4; CHAPTER 1 What's the Big Idea?; A Brief History of Web Development; Traditional ASP.NET Web Forms; What Is Wrong with ASP.NET Web Forms?; Web Development Today; Web Standards and REST; Agile and Test-Driven Development; Ruby on Rails; Sinatra; Node.js; Key Benefits of ASP.NET MVC; MVC Architecture; Extensibility; Tight Control over HTML and HTTP; Testability; Powerful Routing System
Built on the Best Parts of the ASP.NET PlatformModern API; ASP.NET MVC Is Open Source; Who Should Use ASP.NET MVC?; Comparisons with ASP.NET Web Forms; Migrating from Web Forms to MVC; Comparisons with Ruby on Rails; Comparisons with MonoRail; What's New in ASP.NET MVC 4?; Summary; CHAPTER 2 Your First MVC Application; Preparing the Workstation; Creating a New ASP.NET MVC Project; Adding the First Controller; Understanding Routes; Rendering Web Pages; Creating and Rendering a View; Adding Dynamic Output; Creating a Simple Data-Entry Application; Setting the Scene; Designing a Data Model
Adding a Model ClassLinking Action Methods; Creating the Action Method; Adding a Strongly Typed View; Building the Form; Handling Forms; Using Model Binding; Rendering Other Views; Adding Validation; Highlighting Invalid Fields; Completing the Example; Summary; CHAPTER 3 The MVC Pattern; The History of MVC; Understanding the MVC Pattern; Understanding the Domain Model; The ASP.NET Implementation of MVC; Comparing MVC to Other Patterns; Understanding the Smart UI Pattern; Understanding the Model-View Architecture; Understanding Classic Three-Tier Architectures; Understanding Variations on MVC
Understanding the Model-View-Presenter PatternUnderstanding the Model-View-View Model Pattern; Applying Domain-Driven Development; Modeling an Example Domain; Ubiquitous Language; Aggregates and Simplification; Defining Repositories; Building Loosely Coupled Components; Using Dependency Injection; An MVC-Specific DI Example; Using a Dependency Injection Container; Getting Started with Automated Testing; Understanding Unit Testing; Using TDD and the Red-Green-Refactor Workflow; Understanding Integration Testing; Summary; CHAPTER 4 Essential Language Features; Creating the Example Project
Using Automatically Implemented PropertiesUsing Object and Collection Initializers; Using Extension Methods; Applying Extension Methods to an Interface; Creating Filtering Extension Methods; Using Lambda Expressions; Using Automatic Type Inference; Using Anonymous Types; Performing Language Integrated Queries; Understanding Deferred LINQ Queries; Using Async Methods; Applying the async and await Keywords; Summary; CHAPTER 5 Working with Razor; Creating the Example Project; Defining the Model; Defining the Controller; Creating the View; Working with the Model Object; Working with Layouts
Creating the Layout
Includes index.
The ASP.NET MVC 4 Framework is the latest evolution of Microsoft’s ASP.NET web platform. It provides a high-productivity programming model that promotes cleaner code architecture, test-driven development, and powerful extensibility, combined with all the benefits of ASP.NET. ASP.NET MVC 4 contains a number of significant advances over previous versions. New mobile and desktop templates (employing adaptive rendering) are included together with support for jQuery Mobile for the first time. New display modes allow your application to select views based on the browser that's making the request while Code Generation Recipes for Visual Studio help you auto-generate project-specific code for a wide variety of situtations including NuGet support. In this fourth edition, the core model-view-controller (MVC) architectural concepts are not simply explained or discussed in isolation, but are demonstrated in action. You’ll work through an extended tutorial to create a working e-commerce web application that combines ASP.NET MVC with the latest C# language features and unit-testing best practices. By gaining this invaluable, practical experience, you’ll discover MVC’s strengths and weaknesses for yourself—and put your best-learned theory into practice. The book's authors, Steve Sanderson and Adam Freeman, have both watched the growth of ASP.NET MVC since its first release. Steve is a well-known blogger on the MVC Framework and a member of the Microsoft Web Platform and Tools team. Adam started designing and building web applications 15 years ago and has been responsible for some of the world's largest and most ambitious projects. You can be sure you are in safe hands.
Active server pages.
Microsoft .NET Framework.
Microsoft software.
Microsoft .NET Framework.
Software engineering.
Microsoft and .NET.
Software Engineering/Programming and Operating Systems.