ASP.Net MVC in Action (Paperback)

Jeffrey Palermo, Ben Scheirman, Jimmy Bogard

  • 出版商: Manning
  • 出版日期: 2009-09-01
  • 定價: $1,440
  • 售價: 2.1$299
  • 語言: 英文
  • 頁數: 392
  • 裝訂: Paperback
  • ISBN: 1933988622
  • ISBN-13: 9781933988627
  • 相關分類: .NETASP.NET
  • 立即出貨(限量) (庫存=1)




The Model-View-Controller pattern—universally known as MVC—provides a stable, testable approach to web application development by separating the major functions—or concerns—of an application into independently defined roles.

ASP.NET MVC in Action is a comprehensive guide to MVC-based development using this powerful framework. It offers a clearly-written introduction both to the ASP.NET MVC Framework and to the MVC approach. The focus is on creating real, maintainable web applications—so don't expect toy examples and short snippets. The authors lead you from first-use through real-life scenarios.

One of the key benefits of the MVC approach is introducing a high degree of testability to your applications and process. ASP.NET MVC in Action shows you how to test each piece of your ASP.NET application and how to introduce principles of test-driven development into your process.

Because the framework is completely pluggable, you'll learn how to work with external Inversion of Control containers like StructureMap, Windsor, and Spring.NET and open-source persistence layers like NHibernate. Throughout the book, the authors sprinkle in MvcContrib, an extremely useful tool that provides common extensions so you don't have to write them yourself.

Along the way, you'll benefit from the wide-ranging experience of the authors, who have extensive experience with ASP.NET, Monorail, and Ruby on Rails. This book assumes that you already know how to build a standard ASP.NET application and presents most examples in C#.

What's inside?
  1. Getting started with the ASP.NET MVC Framework
  2. The model in depth
  3. The controller in depth
  4. The view in depth
  5. Routing
  6. Customizing and extending the ASP.NET MVC Framework
  7. Scaling the architecture for complex sites
  8. Leveraging existing ASP.NET features
  10. Hosting and deployment
  11. Exploring MonoRail and Ruby on Rails
  12. Best practices
  13. Recipes

What reviewers are saying

"Shows how to put all the features of ASP.NET MVC together to build a great application."

-From the Foreword by Phil Haack, Senior Program Manager, ASP.NET MVC Team, Microsoft

"This book put me in control of ASP.NET MVC."

-Mark Monster, Software Engineer, Rubicon

"Highly recommended for those switching from Web Forms to MVC."

-Frank Wang, Chief Software Architect, DigitalVelocity LLC

"I'd highly recommend this to anyone who is serious about building web applications with ASP.NET MVC."

—Jeremy Skinner, ASP.NET developer and technical proofreader of the book

"...does a good job of not only showing you what to do, but also provides cautionary words to avoid poor practices that may lead to maintenance issues on non-trivial applications."

—Venkat Subramanian, NoFluffJustStuff Blogs

"I really enjoyed ASP.NET MVC in Action and highly recommend it for a fresh look at the ASP.NET MVC Framework."

—David Hayden, MVP

"In the end [the authors] not only did an excellent job of putting together a great practical guide to ASP.NET MVC they also successfully embedded some subversive ALT.NET concepts that will hopeful make us all better developers. And at the end of the day that is a damn fine accomplishment."

—Bobby Johnson

"ASP.NET MVC in Action will guide you from your first project through advanced topics such as AJAX and deploying on suboptimal hosting environments. The writing style is clear and concise. Diagrams and code examples are abundant. I recommend it for anyone looking for a great resource for learning about or becoming a better user of the ASP.NET MVC framework."

—Nathan Stott, Partner and Software Engineer at Whiteboard-IT

"I'm very happy with this book. I would definitely recommend it to anyone interested in ASP.NET MVC. Getting the 'beyond the text' that comes with the CodeCampServer is just icing on the cake, truly."

—Chris Stewart,

"ASP.NET MVC in Action is a true masterpiece...The authors, Jeffrey Palermo, Ben Scheirman and Jimmy Bogard are all considered rock stars in the ASP.NET community and they have opened up the doors to their concert with ASP.NET MVC in Action."

—Mohammad Azam, Microsoft MVP


《ASP.NET MVC in Action》是一本全面介紹使用這個強大框架進行MVC開發的指南。它清晰地介紹了ASP.NET MVC框架和MVC方法。重點是創建真實可維護的Web應用程序,所以不要期望玩具示例和簡短片段。作者將引導您從初次使用到實際場景。

MVC方法的一個關鍵優勢是為應用程序和流程引入了高度的可測試性。《ASP.NET MVC in Action》向您展示如何測試ASP.NET應用程序的每個部分,以及如何將測試驅動開發原則引入您的流程中。


在這個過程中,您將受益於作者的廣泛經驗,他們在ASP.NET、Monorail和Ruby on Rails方面有豐富的經驗。本書假設您已經知道如何構建標準的ASP.NET應用程序,並且大多數示例都是用C#編寫的。

1. 開始使用ASP.NET MVC框架
2. 深入了解模型
3. 深入了解控制器
4. 深入了解視圖
5. 路由
6. 自定義和擴展ASP.NET MVC框架
7. 為複雜站點擴展架構
8. 利用現有的ASP.NET功能
10. 主機和部署
11. 探索MonoRail和Ruby on Rails
12. 最佳實踐
13. 實用技巧

- "展示了如何將ASP.NET MVC的所有功能結合起來構建出一個出色的應用程序。" - 來自Microsoft ASP.NET MVC團隊的高級程式經理Phil Haack的序言
- "這本書讓我掌握了ASP.NET MVC的控制權。" - Rubicon的軟件工程師Mark Monster
- "強烈推薦給那些從Web Forms轉向MVC的人。" - DigitalVelocity LLC的首席軟件架構師Frank Wang
- "我強烈推薦這本書給那些想要優化ASP.NET MVC框架的人。" - ASP.NET開發人員Jeremy Skinner和本書的技術校對者
- "......不僅告訴您該怎麼做,還提供了避免在非平凡應用程序上出現維護問題的警示詞。" - NoFluffJustStuff Blogs的Venkat Subramanian
- "我真的很喜歡《ASP.NET MVC in Action》,強烈推薦給想要了解或成為更好的ASP.NET MVC框架使用者的人。" - MVP David Hayden
- "最終,作者不僅成功地編寫了一本關於ASP.NET MVC的實用指南,還成功地嵌入了一些ALT.NET的概念,這將使我們成為更好的開發人員。這是一個非常出色的成就。" - Bobby Johnson
- "《ASP.NET MVC in Action》將引導您從第一個項目到高級主題,如AJAX和在次優化的主機環境上部署。寫作風格清晰簡潔,圖表和代碼示例豐富。我推薦給任何想要學習或成為更好的ASP.NET MVC框架使用者的人。" - Nathan Stott