Synopses & Reviews
Top-selling MVC book from a top team at Microsoft—now fully updated!
ASP.NET MVC 2.0 is now available and shipping with Visual Studio 2010 and .NET 4. A new update to Microsoft’s Model-View-Controller technologies, MVC 2 enables developers to build dynamic, data-driven Web sites. Professional ASP.NET MVC 2 shows you step-by-step how to use MVC 2. You’ll learn both the theory behind MVC 2, as well as walk through practical tutorials, where you’ll create a real-world application. Topics include transitioning from ASP.NET development, as well as an overview of related tools and technologies, including LINQ, jQuery, and REST.
This book is divided into two very broad sections, each comprising several chapters.
The first half of the book is concerned with introducing the MVC pattern and how ASP.NET MVC 2 implements that pattern.
Chapter 1 "NerdDinner" uses a small but complete application to walk you through how to build an ASP.NET MVC 2 application and some of the core concepts behind ASP.NET 2 MVC.
Chapter 2 "Model-View-Controller and ASP.NET" starts off with a description of the Model-View-Controller pattern, explaining the basic concepts of the pattern and providing a bit of its history. The chapter goes on to describe the state of the MVC pattern on the web today as it is implemented by various frameworks, such as ASP.NET MVC 2.
Chapter 3 "ASP.NET > ASP.NET MVC" then covers the ways that ASP.NET MVC is different from ASP.NET Web Forms.
Chapter 4 "Routes and URLs" digs deep into routing to describe the role that URLs play in your application and how routing figures into that. It also differentiates routing from URL rewriting and covers a bit on extending routing and writing unit tests for routes.
Chapter 5 "Controllers" takes a look at controllers and controller actions-what they are, and how to write them. It also covers action results, which are returned by controller actions and what they are used for.
Chapters 6 "Views" and 7 "Ajax" cover views and view engines, and then add a little flavor on top by examining the role that AJAX plays in your views.
The second half of the book focuses entirely on advanced techniques and extending the framework.
Chapter 8 "Filters" goes into detail on action filters, which provide an extensibility point for adding cross-cutting behaviors to action methods.
Chapter 9 "Securing Your Application" covers security and good practices for building a secure application.
Chapter 10 "Test Driven Development with ASP.NET MVC" provides a brief introduction to Test Driven Development (TDD) as it applies to ASP.NET MVC.
Chapter 11 "Testable Design Patterns" shows you real-world patterns and practices for building applications that are testable.
Chapter 12 "The Best of Both Worlds: Web Forms and MVC Together" discusses how Web Forms and MVC work together.
Chapter 13 "What's New in ASP.NET MVC 2" covers what's new in MVC 2.
This book is for web developers who are looking to add more complete testing to their web sites, and who are perhaps ready for "something different."
In some places, we assume that you're somewhat familiar with ASP.NET WebForms, at least peripherally. There are a lot of ASP.NET WebForms developers out there who are interested in ASP.NET MVC so there are a number of places in this book where we contrast the two technologies. Even if you're not already an ASP.NET developer, you might still find these sections interesting for context, as well as for your own edification as ASP.NET MVC may not be the web technology that you're looking for.
ASP.NET MVC 2?is a new update to Microsoft's successful Model-View-Controller technologies.?This process enables developers to create dynamic data-driven web sites and follows in the same mold as other highly successful platforms such as Rails and Django.
Wrox's Professional ASP.NET MVC 2?is a step-by-step tutorial on the theory and approach for using ASP.NET MVC 2, and is full of real-world examples for experienced developers to use in porting and creating their current ASP.NET web sites.? The book uses a step by step approach to learning the theory behind MVC 2, covers the changes required to transition from ASP.NET development, and ways that users will benefit from using its new and advanced features.
In addition, the tutorials are wrapped around a real-world application using MVC 2, and feature toolsets and technologies that compliment MVC 2?such as LINQ, jQuery, and REST.
Top-selling MVC book from a top team at Microsoft--now fully updated
ASP.NET MVC 2.0 is now available and shipping with Visual Studio 2010 and .NET 4. A new update to Microsoft's Model-View-Controller technologies, MVC 2.0 enables developers to build dynamic, data-driven Web sites. This in-depth book shows you step-by-step how to use MVC 2.0. You'll learn both the theory behind MVC 2.0, as well as walk through practical tutorials, where you'll create a real-world application. Topics include transitioning from ASP.NET development, as well as an overview of related tools and technologies, including LINQ, jQuery, and REST. Shows developers and programmers how to use ASP.NET MVC 2.0, Microsoft's latest update to its Model-View-Controller technology for developing dynamic, data-driven Web sites Expert author trio includes a current member of the Microsoft ASP.NET team Uses a step-by-step approach to explain all major features and functionalities Explains theory as well as practical application, including how to transition from ASP.NET development, and related technologies such as LINQ, jQuery, and REST
Take your development skills to another level with MVC 2.0 and Professional ASP.NET MVC 2.0.
A comprehensive overview covering the new features of MVC 2
ASP.NET MVC 2, Microsoft's latest version of the successful web development framework, helps you create dynamic data-driven web sites; this book gives you an extra edge. Starting with Scott Guthrie's popular NerdDinner.com application, this book uses real-world examples to discuss the theory behind MVC 2: how to transition from ASP.NET Web Forms development, and how you benefit from advanced features. The author team scrutinizes MVC 2's new features and explains how MVC 2 relates to Visual Studio® and .NET versions.
Professional ASP.NET MVC 2:
Shows you how to create the database, build the Model, and work with Controllers and Views
Addresses authentication and authorization
Explores MVC 2 in relation to Ruby on Rails®, Django® and Python®, MonoRail, and others
Dissects views: what they do, what they shouldn't do, and how to specify a view
Explains how to share data between Web Forms and MVC
Points out the important changes between MVC 1.0 and MVC 2
Includes 2 weeks of Rob Conery's TekPub, expert screencasts on ASP.NET MVC 2, LINQ, ASP.NET 4, Entity Framework, jQuery, and more
Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.
Join our Programmer to Programmer forums to ask and answer programming questions about this book, join discussions on the hottest topics in the industry, and connect with fellow programmers from around the world.
Take advantage of free code samples from this book, as well as code samples from hundreds of other books, all ready to use.
Find articles, ebooks, sample chapters, and tables of contents for hundreds of books, and more reference resources on programming topics that matter to you.
About the Author
Jon Galloway works at Microsoft and is part of the Server and Tools online group where he focuses on the ASP.NET community including the ASP.NET web site.
Phil Haack is a senior program manager on Microsoft's ASP.NET team.
Scott Hanselman is a senior program manager on Microsoft's ASP.NET team.
Scott Guthrie is corporate vice president of Microsoft's .NET Developer Division.
Rob Conery is an expert in ASP.NET and creator of SubSonic.
Table of Contents
Chapter 1 NerdDinner.
Chapter 2 Model-View-Controller and ASPNET.
Chapter 3 ASPNET > ASPNET MVC.
Chapter 4 Routes and URLs.
Chapter 5 Controllers.
Chapter 6 Views.
Chapter 7 AJAX.
Chapter 8 Filters.
Chapter 9 Securing Your Application.
Chapter 10 Test Driven Development with ASPNET MVC.
Chapter 11 Testable Design Patterns.
Chapter 12 Best of Both Worlds: Web Forms and MVC Together.
Chapter 13 What's New in ASPNET MVC 2.