Location:  Home » Books » Pro ASP.NET MVC 2 Framework, Second Edition (Expert's Voice in .NET)    

Pro ASP.NET MVC 2 Framework, Second Edition (Expert's Voice in .NET)

Pro ASP.NET MVC 2 Framework, Second Edition (Expert's Voice in .NET)Author: Steven Sanderson
Publisher: Apress
Category: Book

List Price: $54.99
Buy New: $34.64
as of 9/8/2010 20:59 CDT details
You Save: $20.35 (37%)

In Stock


New (9) Used (5) from $31.98

Seller: Amazon.com
Rating: 4.5 out of 5 stars 12 reviews
Sales Rank: 5,286

Media: Paperback
Edition: 1
Pages: 776
Number Of Items: 1
Shipping Weight (lbs): 2.4
Dimensions (in): 9.2 x 7.4 x 1.7

ISBN: 1430228865
Dewey Decimal Number: 006.7882
EAN: 9781430228868
ASIN: 1430228865

Publication Date: June 30, 2010
Availability: Usually ships in 24 hours

Also Available In:

  • Kindle Edition - Pro ASP.NET MVC 2 Framework, Second Edition

Similar Items:


Editorial Reviews:

Product 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, you’ll gain invaluable up-to-date knowledge of security, deployment, and interoperability challenges.

The ASP.NET MVC 2 Framework is the latest evolution of Microsoft’s ASP.NET web platform. It introduces a radically new 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. 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.

What you’ll learn

  • Gain a solid architectural background to ASP.NET MVC V2, 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 new ASP.NET MVC 2 Framework.




Customer Reviews:
Showing reviews 1-5 of 12



5 out of 5 stars Fantastic Book   July 13, 2010
Scott Guthrie (Redmond, WA USA)
39 out of 40 found this review helpful

Every now and then you read a software development book that absolutely takes your breath away. This is one of those books.

This is an outstanding book for the professional developer who is looking to become an expert on ASP.NET MVC, and who wants to seriously "raise their game" when it comes to software development in general. Steve Sanderson (the author) has a fantastic writing style that is easy to read, and which flows very naturally.

The first 212 pages of the book are mostly spent building two applications (a party invite application and a sports e-commerce store) literally starting with File->New Project and walking you step-by-step through their creation (explaining all of the code keystrokes, C# language features, and Visual Studio steps required along the way). These provide a great set of tutorials that can help you understand how ASP.NET MVC works and can be applied to build common web scenarios.

Sanderson's book avoids simply showing "the basic path" when it comes to building ASP.NET MVC applications, and instead takes the much bolder approach of teaching ASP.NET MVC in conjunction with Unit Testing, Test Driven Development (TDD), Dependency Injection, and Mocking. What makes the book so great is that he is able to make these concepts (which most books consider "advanced topics") straight forward to comprehend and grasp. He introduces them early, explains the concepts behind them quickly, and then does a masterful job of immediately showing how you can apply and use them pragmatically within ASP.NET MVC applications. The result is that they feel natural, you really "get" the concepts behind them, and you are left knowing the exact mechanics and steps necessary to take advantage of them within your own ASP.NET MVC applications. He uses the free, open-source NUnit, Moq, and Ninject frameworks within the book - which work with all version of Visual Studio (including the free express editions).

The remaining 500 pages of the book then go into detail on all the core areas of ASP.NET MVC, and do a phenomenal job of explaining both all of the features - and more importantly how to take advantage of them. In addition to covering the built-in features of ASP.NET MVC, he covers how to implement common scenarios with it like implementing CAPTCHAs, how to take advantage of jQuery, use VS 2010's new web deployment features, and more.

This book is a tour de force and absolutely stunning. It is a must-have for the bookshelf of any professional ASP.NET MVC developer.

Scott Guthrie
Corporate Vice President - Developer Division
Microsoft Corporation



5 out of 5 stars Excellent book for learning ASP.NET MVC 2   July 14, 2010
Robert D. Vandehey (North Hills, CA United States)
10 out of 10 found this review helpful

I see Scott Guthrie has already recommended the book and gave it five stars. What other recommendation do you need? You should purchase this book! In case you want additional validation to purchase this book, here is my review. I have been an ASP.NET Webform developer since the first release. I have been listening to the buzz at conferences and in Scott Guthrie's blogs about ASP.NET MVC and more recently MVC 2 and wanted to start my education so I purchased this book. This book is an excellent book for learning MVC 2.

The book starts off giving you an overview of what MVC is, how it's different than Webforms and why it's better. It also does a brief comparison to other similar products like Ruby on Rails and MonoRail. The next five chapters are dedicated to building a simple RSVP form and an eCommerce store using MVC 2. It doesn't just give you a simple demo of MVC features but builds an actual working application that could be the beginnings of a real application. Building these applications gives you a great feeling for the language. But Mr. Sanderson isn't content with just teaching you MVC, he also wants to teach you many of the best practices in software development. He covers test-driven (TDD) and behavior-driven development(BDD). I love the ShouldEqual() extension method for simplifying an assert. He covers Nunit, Moq and Specflow (Gherkin BDD language interpreter). He talks about unit testing versus integration testing. He uses Linq to SQL for database integration and Ninject for Dependency Injection. While you can download all of the source code for the applications from the apress.com web site, I typed in all of the samples from the book. I can honestly say I haven't found one sample that didn't work as expected. The book also uses CSS to keep the HTML clean.

Once you are done building the two applications and have a good understanding of how ASP.NET MVC actually works in practice, Part 2 of the book covers MVC features in detail. It covers URLs and URL routing, controllers and actions, extending controllers and the request processing pipeline, views, HTML helper methods, models with parameter binding and validation, user interface techniques and Ajax and client JavaScript including jQuery. The last few chapters deal with deployment strategies and understanding common security vulnerabilities and how to avoid them. There is also a section that talks about upgrading from webforms to MVC and even discusses how to combine the two technologies.

Even though I have a good understanding of many of the best practices introduced in the book, I found the book's coverage of these topics the appropriate length and depth. Mr. Sanderson goes to great lengths to support Visual Studio 2008 and 2010 as well as ASP.NET 3.5 and 4.0. At the beginning I was worried the author was going to duplicate examples in both versions but to his credit he quickly transitioned to using ASP.NET 4.0 syntax but with appropriate callouts to bring attention to the differences and warning that there would be no further warnings.

One small criticism of the book was with the use of Linq to SQL. I would have preferred him covering the Entity Framework or nHibernate. Mr. Sanderson explained why he choose Linq to SQL and his reasons are valid. Another equally small criticism was with mixing CSS styles with HTML in the Shopping cart example. He took great pains in the rest of the application to use best practices but took the easy way on this sample. Obviously if these are the biggest criticisms I can give the book, the book is pretty amazing. I strongly recommend the book and is one of the best programming books I have purchased (and I have purchased many).



5 out of 5 stars Absolutely must-read   July 18, 2010
Felix Rabinovich (Los Angeles, CA)
8 out of 8 found this review helpful

Scott Guthrie wrote a review with enthusiastic recommendation - so I realize that anything I add isn't going to be that helpful :) The first version of the book was my favorite on MVC1, and I couldn't wait to get MVC2 version. And it didn't disappoint!

So, all my comments below shouldn't dissuade you in any way from getting this book as soon as possible!

1. I read first version of this book after I went through Nerd Dinner tutorial. I think a "quicker-and-dirtier" example like Nerd Dinner would be helpful before you get into unit testing, dependency injection, and other advanced topics. Especially if your background is in WebForms! Unfortunately, Scott's team seem to have taken extended vacation after MVC2 and VS2010 went live in April. All the tutorials are still covering MVC1 (as of mid-July 2010).

2. Just like somebody else noted, I would prefer to use EF over LINQ to SQL. I understand author's arguments; I just disagree with them. Most developers are upgrading the tools very quickly (unlike OS or business applications the concern about backward compatibility just isn't there). There are a lot of issues that are at intersection of EF4 and MVC2 - having example that use both would be just awesome! More generally, I think there is too much concern (and space) dedicated to VS2008 issues.

3. Author chose Ninject for DI examples... It feels from conversations that I had that Castle Windsor is more popular.

4. It seems to me that every MVC project is using T4MVC (and for good reason... magic strings are EVIL). Would be nice to see it incorporated in the book!

5. As I said, this is one of the best (if not the best) books on the topic. Would be nice to have a forum where the readers can discuss some topics, help each other, and maybe make suggestions or enhancement requests. If such forum exists - I couldn't find it.



5 out of 5 stars The book for MVC 2   July 26, 2010
DavidD
4 out of 4 found this review helpful

This is the book I have been waiting for. While it is easy to built simple applications in [...] MVC, there are many technologies that you need to understand to build real-world applcations. Sanderson's book covers [...]t MVC 2 in depth giving you the knowledge you need to build real apps. Some topics I found useful:

1. Using NInject as a DI container.
2. Building custom filters. Including authorization filters.
3. REST style programming in [...] MVC.
4. Areas and how Areas and namespaces interact.
5. Evaluation of the usefulness of HTML Helper methods in MVC Futures and how to use them.
6. Building your own HTML Helpers.
7. Templated View Helpers
8. Using Model Metadata with [...] MVC including how to create your own metadata.
9. How to explicitly call Model Binding (important for testing).
10. Custom Model Binders.
11. Custom Validators.
12. Building Wizards

I particularly like that Sanderson is willing to give advice on using MVC even when it is at odds with the current orthodoxy. For example, if you have most of your logic in the model, you may be better off building UI integration tests rather that Unit Test of your controllers. In general, I found his recommendations make alot of sense. Overall this is a great book, my only wish is that I had it four months ago.



5 out of 5 stars Best ASP.NET MVC 2 Book   August 1, 2010
David Hayden (Sarasota, FL USA)
1 out of 1 found this review helpful

This is the best book on ASP.NET MVC 2 period just like the first edition was the best book on ASP.NET MVC 1.

Whether you are completely new to ASP.NET MVC or an advanced developer looking for in-depth coverage of a particular feature, this is the book to have in your library. Most books are either beginner or advanced and talk about a few features and gloss over others. Pro ASP.NET MVC 2 Framework talks about everything and gives you the basics to get you up and started quickly and then provides in-depth knowledge when you are ready. It also doesn't dumb-down the material by not discussing topics like unit testing, dependency injection, etc. It discusses these important topics as well as others so you understand them and does it in a way that won't turn off those developers who don't see the value in such practices.

If that wasn't enough, the examples in the book are a pure delight as they are real-world examples and techniques that you will use in your own applications as opposed to fluff. A lot of the code will inspire you to write similar reusable code in your own libraries or possibly take verbatim.

If you are not quite up to speed on some of the new C# language features and concepts of domain modeling used throughout the book, there is a primer at the beginning of the book. And, at the end of the book you will find help on deploying and configuring ASP.NET MVC 2 with IIS 6 and 7. You just can't beat the end-to-end coverage.

If you only want to purchase 1 book on ASP.NET MVC 2 for beginner and advanced material, this is it.


Showing reviews 1-5 of 12



Copyright © 2009 Glossary Of Computer Terms
asp net  asp net mvc  aspnet  dotnet  mvc