Professional ASP.NET MVC 2 (Paperback)
暫譯: 專業 ASP.NET MVC 2 (平裝本)

Jon Galloway, Scott Hanselman, Phil Haack, Scott Guthrie, Rob Conery

  • 出版商: Wrox Press
  • 出版日期: 2010-06-11
  • 售價: $1,760
  • 貴賓價: 9.5$1,672
  • 語言: 英文
  • 頁數: 552
  • 裝訂: Paperback
  • ISBN: 0470643188
  • ISBN-13: 9780470643181
  • 相關分類: .NETASP.NET
  • 已絕版

買這商品的人也買了...

相關主題

商品描述

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.

商品描述(中文翻譯)

來自微軟頂尖團隊的暢銷MVC書籍—現在已全面更新!

ASP.NET MVC 2.0 現已推出,並隨 Visual Studio 2010 和 .NET 4 一同發貨。作為微軟的模型-視圖-控制器(Model-View-Controller)技術的新更新,MVC 2 使開發人員能夠構建動態的數據驅動網站。專業 ASP.NET MVC 2 逐步教您如何使用 MVC 2。您將學習 MVC 2 背後的理論,並通過實用的教程,創建一個真實的應用程序。主題包括從 ASP.NET 開發的過渡,以及相關工具和技術的概述,包括 LINQ、jQuery 和 REST。

本書分為兩個非常廣泛的部分,每個部分包含幾個章節。

書的前半部分主要介紹 MVC 模式以及 ASP.NET MVC 2 如何實現該模式。

第 1 章 'NerdDinner' 使用一個小而完整的應用程序,帶您了解如何構建 ASP.NET MVC 2 應用程序及其背後的一些核心概念。

第 2 章 '模型-視圖-控制器與 ASP.NET' 開始於對模型-視圖-控制器模式的描述,解釋該模式的基本概念並提供一些歷史背景。該章接著描述了當前網絡上 MVC 模式的狀態,以及各種框架(如 ASP.NET MVC 2)如何實現它。

第 3 章 'ASP.NET > ASP.NET MVC' 然後介紹了 ASP.NET MVC 與 ASP.NET Web Forms 的不同之處。

第 4 章 '路由與 URL' 深入探討路由,描述 URL 在應用程序中的作用以及路由如何影響這一點。它還區分了路由與 URL 重寫,並簡要介紹了擴展路由和為路由編寫單元測試。

第 5 章 '控制器' 研究控制器和控制器動作—它們是什麼,以及如何編寫它們。它還涵蓋了由控制器動作返回的動作結果及其用途。

第 6 章 '視圖' 和第 7 章 'Ajax' 涵蓋視圖和視圖引擎,然後通過檢查 AJAX 在視圖中的作用來增添一些風味。

書的後半部分完全專注於高級技術和擴展框架。

第 8 章 '過濾器' 詳細介紹了動作過濾器,這為向動作方法添加橫切行為提供了擴展點。

第 9 章 '保護您的應用程序' 涵蓋了安全性和構建安全應用程序的良好實踐。

第 10 章 '使用 ASP.NET MVC 的測試驅動開發' 簡要介紹了測試驅動開發(TDD)在 ASP.NET MVC 中的應用。

第 11 章 '可測試的設計模式' 向您展示了構建可測試應用程序的現實模式和實踐。

第 12 章 '兩全其美:Web Forms 和 MVC 的結合' 討論了 Web Forms 和 MVC 如何協同工作。

第 13 章 'ASP.NET MVC 2 的新特性' 涵蓋了 MVC 2 中的新特性。

本書適合希望為其網站添加更完整測試的網頁開發人員,並且可能準備迎接“不同的東西”。

在某些地方,我們假設您對 ASP.NET WebForms 有一定的了解,至少是邊緣性的。許多 ASP.NET WebForms 開發人員對 ASP.NET MVC 感興趣,因此本書中有多個地方對比這兩種技術。即使您尚未成為 ASP.NET 開發人員,您仍然可能會發現這些部分有趣,作為背景知識,以及作為您自己的學習,因為 ASP.NET MVC 可能不是您所尋找的網絡技術。