Shows how to put all the features of ASP.NET MVC together to build a great application.
ASP.NET MVC in Action is a guide to pragmatic MVC-based web development. After a thorough overview, it dives into issues of architecture and maintainability. The book assumes basic knowledge of ASP.NET (v. 3.5) and expands your expertise.
about this book
about the authors
about the cover illustration
Getting started with the ASP.NET MVC Framework
Picking apart the default application
Your first ASP.NET MVC controller from scratch
Our first view
Ensuring the application is maintainable
Testing controller classes
The model in depth
Understanding the basics of domain-driven design
Domain model for this book
Working with the model
The controller in depth
The controller action
Simple controllers do not need a view
Simple actions and views
Working with form values
Processing querystring parameters
Binding more complex objects in action parameters
Options for passing ViewData
The view in depth
How ASP.NET MVC views differ from Web Forms
Folder structure and view basics
Overview of view basics
Leveraging the view to create dynamic screens
What are routes?
Designing a URL schema
Implementing routes in ASP.NET MVC
Using the routing system to generate URLs
Creating routes for Code Camp Server
Testing route behavior
Using routing with existing ASP.NET projects
Customizing and extending the ASP.NET MVC Framework
Extending URL routing
Creating your own ControllerFactory
Extending the controller
Creating a custom view engine
Customizing Visual Studio for ASP.NET MVC
Scaling the architecture for complex sites
Taming large controller actions
Whipping views into shape
Using action filters to load common data
Organizing controllers into areas
Leveraging existing ASP.NET features
ASP.NET server controls
Tracing and debugging
Implementing personalization and localization
Implementing ASP.NET site maps
AJAX in ASP.NET MVC
Diving into AJAX with an example
AJAX with ASP.NET Web Forms
AJAX in ASP.NET MVC
Hosting and deployment
Deploying to IIS 7
Deploying to IIS 6 and earlier
Exploring MonoRail and Ruby on Rails
Ruby on Rails
jQuery autocomplete text box
Automatic client-side validation
Data access with NHibernate
Designing views with the Spark view engine
About the Technology
ASP.NET MVC implements the Model-View-Controller pattern on the ASP.NET runtime. It works well with open source projects like NHibernate, Castle, StructureMap, AutoMapper, and MvcContrib.
- How to effectively perform unit and full-system tests.
- How to implement dependency injection using StructureMap or Windsor.
- How to work with the domain and presentation models.
- How to work with persistence layers like NHibernate.
About the reader
The book assumes basic knowledge of ASP.NET (v. 3.5) and expands your expertise. The book's many examples are in C#.