Related Titles
- Full Description
-
Author Steven Sanderson has seen the ASP.NET MVC Framework mature from the start, so his experience, combined with comprehensive coverage of all the new features, including those in the official MVC development toolkit, offers the clearest understanding of how this exciting new framework can improve your coding efficiency. With this book, youll gain invaluable up-to-date knowledge of security, deployment, and interoperability challenges.
The ASP.NET MVC 2 Framework introduces a radical high-productivity programming model that promotes cleaner code architecture, test-driven development, and powerful extensibility, combined with all the benefits of ASP.NET 3.5.
In this book, the core model-view-controller (MVC) architectural concepts are not simply explained or discussed in isolation, but are demonstrated in action. Youll work through an extended tutorial to create a working e-commerce web application that combines ASP.NET MVC with C# language features and unit-testing best practices. By gaining this invaluable, practical experience, youll discover MVCs strengths and weaknesses for yourselfand put your best-learned theory into practice.
What youll learn
- Gain a solid architectural background to ASP.NET MVC 2, including MVC and REST concepts.
- Explore the entire ASP.NET MVC Framework and take a detailed look at the official MVC development toolkit.
- See how it works with test-driven development in action.
- Capitalize on your existing knowledge quickly and easily through translation and comparison of features in classic ASP.NET to those in ASP.NET MVC.
- Learn about the latest security and deployment issues, including IIS 7.0.
Who this book is for
This book is for web developers with a basic knowledge of ASP.NET and C# who want (or need) to start using the ASP.NET MVC 2 Framework.
- Table of Contents
-
Table of Contents
- Whats the Big Idea?
- Your First ASP.NET MVC Application
- Prerequisites
- SportsStore: A Real Application
- SportsStore: Navigation and Shopping Cart
- SportsStore: Administration and Final Enhancements
- Overview of ASP.NET MVC Projects
- URLs and Routing
- Controllers and Actions
- Controller Extensibility
- Views
- Models and Data Entry
- User Interface Techniques
- Ajax and Client Scripting
- Security and Vulnerability
- Deployment
- ASP.NET Platform Features
- Upgrading and Combining ASP.NET Technologies
- Source Code/Downloads
- Errata
-
If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.
On page 32:return View("Thanks", guestResponse);
should be
return View("Thanks", GuestResponse);
On page 111:third bullet point
"You can trivially hook it up to any other IProductsController (e.g. for a different database or ORM technology)..."
I believe that "IProductsController" should be "IProductsRepository"
On page 122:result.Append(tag.ToString()) instead of result.AppendLine(tag.ToString()) to pass unit test.
On page 124:
System.Web.Mvc.ActionResult does not contain a definition for 'VIewData' and no extension method 'ViewData' accepting a first argument of type 'System.Web.Mvc.ActionResult' could be found
//This line caused the error
var ViewModel = (ProductsListViewModel) result.ViewData.Model;
//Please not I am runing Visual Studio 2010
On page 143:Unit test won't compile b/c of the CollectionAssert line. The second parameter is looking for an ICollection and cannot convert an IEnumerable to an ICollection.
On page 220:
The third bullet states that the framework will look for Views/Product/SomeView.aspx. This should be Views/Products/SomeView.aspx
On page 466:
Html.ValidateFor( should be Html.ValidateMessageFor(






