Professional ASP.NET 4 in C# and VB (Paperback)
暫譯: 專業 ASP.NET 4:C# 與 VB 實務指南 (平裝本)

Bill Evjen, Scott Hanselman, Devin Rader

  • 出版商: Wrox Press
  • 出版日期: 2010-03-09
  • 售價: $2,250
  • 貴賓價: 9.5$2,138
  • 語言: 英文
  • 頁數: 1536
  • 裝訂: Paperback
  • ISBN: 0470502207
  • ISBN-13: 9780470502204
  • 相關分類: .NETASP.NETC#
  • 已過版

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

商品描述

This book was written to introduce you to the features and capabilities that ASP.NET 4 offers, as well as to give you an explanation of the foundation that ASP.NET provides. We assume you have a general understanding of Web technologies, such as previous versions of ASP.NET, Active Server Pages 2.0/3.0, or JavaServer Pages. If you understand the basics of Web programming, you should not have much trouble following along with this book's content.

If you are brand new to ASP.NET, be sure to check out Beginning ASP.NET 4: In C# and VB by Imar Spaanjaars (Wiley Publishing, Inc., 2010) to help you understand the basics.

In addition to working with Web technologies, we also assume that you understand basic programming constructs, such as variables, For Each loops, and object-oriented programming.

You may also be wondering whether this book is for the Visual Basic developer or the C# developer. We are happy to say that it is for both! When the code differs substantially, this book provides examples in both VB and C#.

This book explores the 4 release of ASP.NET. It covers each major new feature included in ASP.NET 4 in detail. The following list tells you something about the content of each chapter.

  • Chapter 1, ″Application and Page Frameworks.″ The first chapter covers the frameworks of ASP.NET applications as well as the structure and frameworks provided for single ASP.NET pages. This chapter shows you how to build ASP.NET applications using IIS or the built-in Web server that comes with Visual Studio 2010. This chapter also shows you the folders and files that are part of ASP.NET. It discusses ways to compile code and shows you how to perform cross-page posting. This chapter ends by showing you easy ways to deal with your classes from within Visual Studio 2010.

  • Chapters 2, 3, and 4. These three chapters are grouped together because they all deal with server controls. This batch of chapters starts by examining the idea of the server control and its pivotal role in ASP.NET development. In addition to looking at the server control framework, these chapters delve into the plethora of server controls that are at your disposal for ASP.NET development projects. Chapter 2, ″ASP.NET Server Controls and Client-Side Scripts,″ looks at the basics of working with server controls. Chapter 3, ″ASP.NET Web Server Controls,″ covers the controls that have been part of the ASP.NET technology since its initial release and the controls that have been added in each of the ASP.NET releases. Chapter 4, ″Validation Server Controls,″ describes a special group of server controls: those for validation.

  • Chapter 5, ″Working with Master Pages.″ Master pages provide a means of creating templated pages that enable you to work with the entire application, as opposed to single pages. This chapter examines the creation of these templates and how to apply them to your content pages throughout an ASP.NET application.

  • Chapter 6, ″Themes and Skins.″ The Cascading Style Sheet files you are allowed to use in ASP.NET 1.0/1.1 are simply not adequate in many regards, especially in the area of server controls. This chapter looks at how to deal with the styles that your applications require and shows you how to create a centrally managed look-and-feel for all the pages of your application by using themes and the skin files that are part of a theme.

  • Chapter 7, ″Data Binding.″ One of the more important tasks of ASP.NET is presenting data, and this chapter looks at the underlying capabilities that enable you to work with the data programmatically before issuing the data to a control.

  • Chapter 8, ″Data Management with ADO.NET.″ This chapter presents the ADO.NET data model provided by ASP.NET, which allows you to handle the retrieval, updating, and deleting of data quickly and logically.

  • Chapter 9, ″Querying with LINQ.″ The.NET Framework 4 includes a nice access model language called LINQ. LINQ is a set of extensions to the .NET Framework that encompass language-integrated query, set, and transform operations. This chapter introduces you to LINQ and how to effectively use this feature in your Web applications today.

  • Chapter 10, ″Working with XML and LINQ to XML.″ The .NET Framework and ASP.NET 4 have many capabilities built into their frameworks that enable you to easily extract, create, manipulate, and store XML. This chapter takes a close look at the XML technologies built into ASP.NET and the underlying .NET Framework.

  • Chapter 11, ″Introduction to the Provider Model.″ The provider model is built into ASP.NET to make the lives of developers so much easier and more productive than ever before. This chapter gives an overview of this provider model and how it is used throughout ASP.NET 4.

  • Chapter 12, ″Extending the Provider Model.″ After an introduction of the provider model, this chapter looks at some of the ways to extend the provider model found in ASP.NET 4. This chapter also reviews a couple of sample extensions to the provider model.

  • Chapter 13, ″Site Navigation.″ Most developers do not simply develop single pages—they build applications. One of the application capabilities provided by ASP.NET 4 is the site navigation system covered in this chapter.

  • Chapter 14, ″Personalization.″ Developers are always looking for ways to store information pertinent to the end user. After it is stored, this personalization data has to be persisted for future visits or for grabbing other pages within the same application. The ASP.NET team developed a way to store this information—the ASP.NET personalization system. The great thing about this system is that you configure the entire behavior of the system from the web.config file.

  • Chapter 15, ″Membership and Role Management.″ This chapter covers the membership and role management system developed to simplify adding authentication and authorization to your ASP.NET applications. This chapter focuses on using the web.config file for controlling how these systems are applied, as well as on the server controls that work with the underlying systems.

  • Chapter 16, ″Portal Frameworks and Web Parts.″ This chapter explains Web Parts—a way of encapsulating pages into smaller and more manageable objects.

  • Chapter 17, ″HTML and CSS Design with ASP.NET.″ Visual Studio 2010 places a lot of focus on building a CSS-based Web. This chapter takes a close look at how you can effectively work with HTML and CSS design for your ASP.NET applications.

  • Chapter 18, ″ASP.NET AJAX.″ AJAX is an acronym for Asynchronous JavaScript and XML. In Web application development, it signifies the capability to build applications that make use of the XMLHttpRequest object. Visual Studio 2010 contains the ability to build AJAX-enabled ASP.NET applications from the default install of the IDE. This chapter takes a look at this way to build your applications.

  • Chapter 19, ″ASP.NET AJAX Control Toolkit.″ Along with the capabilities to build ASP.NET applications that make use of the AJAX technology, a series of controls is available to make the task rather simple. This chapter takes a good look at the ASP.NET AJAX Control Toolkit and how to use this toolkit with your applications today.

  • Chapter 20, ″Security.″ This chapter discusses security beyond the membership and role management features provided by ASP.NET 4. This chapter provides an in-depth look at the authentication and authorization mechanics inherent in the ASP.NET technology, as well as HTTP access types and impersonations.

  • Chapter 21, ″State Management.″ Because ASP.NET is a request-response–based technology, state management and the performance of requests and responses take on significant importance. This chapter introduces these two separate but important areas of ASP.NET development.

  • Chapter 22, ″Caching.″ Because of the request-response nature of ASP.NET, caching (storing previous generated results, images, and pages) on the server becomes rather important to the performance of your ASP.NET applications. This chapter looks at some of the advanced caching capabilities provided by ASP.NET, including the SQL cache invalidation feature which is part of ASP.NET 4. This chapter also takes a look at object caching and object caching extensibility.

  • Chapter 23, ″Debugging and Error Handling.″ This chapter tells you how to properly structure error handling within your applications. It also shows you how to use various debugging techniques to find errors that your applications might contain.

  • Chapter 24, ″File I/O and Streams.″ This chapter takes a close look at working with various file types and streams that might come into your ASP.NET applications.

  • Chapter 25, ″User and Server Controls.″ Not only can you use the plethora of server controls that come with ASP.NET, but you can also use the same framework these controls use and build your own. This chapter describes building your own server controls and how to use them within your applications.

  • Chapter 26, ″Modules and Handlers.″ This chapter looks at two methods of manipulating the way ASP.NET processes HTTP requests: HttpModule and HttpHandler. Each method provides a unique level of access to the underlying processing of ASP.NET, and each can be a powerful tool for creating Web applications.

  • Chapter 27, "ASP.NET MVC." ASP.NET MVC is the latest major additio...

商品描述(中文翻譯)

這本書旨在介紹 ASP.NET 4 所提供的功能和能力,並解釋 ASP.NET 所提供的基礎。我們假設您對網頁技術有一般的了解,例如之前版本的 ASP.NET、Active Server Pages 2.0/3.0 或 JavaServer Pages。如果您了解網頁程式設計的基本概念,您應該不會在跟隨本書內容時遇到太多困難。

如果您對 ASP.NET 完全陌生,請務必參考 Imar Spaanjaars 所著的《Beginning ASP.NET 4: In C# and VB》(Wiley Publishing, Inc., 2010),以幫助您理解基礎知識。

除了處理網頁技術外,我們還假設您了解基本的程式設計結構,例如變數、For Each 迴圈和物件導向程式設計。

您可能也在想這本書是針對 Visual Basic 開發者還是 C# 開發者。我們很高興地告訴您,這本書適用於兩者!當代碼有顯著差異時,本書提供 VB 和 C# 的範例。

本書探討了 ASP.NET 4 的版本,詳細介紹了 ASP.NET 4 中包含的每個主要新功能。以下列表告訴您每章的內容。

- **第 1 章,「應用程式和頁面框架。」** 第一章涵蓋了 ASP.NET 應用程式的框架以及單個 ASP.NET 頁面所提供的結構和框架。本章展示了如何使用 IIS 或隨 Visual Studio 2010 附帶的內建網頁伺服器來構建 ASP.NET 應用程式。本章還展示了 ASP.NET 的文件夾和檔案,討論了編譯代碼的方法,並展示了如何執行跨頁面發送。本章結尾展示了如何輕鬆地從 Visual Studio 2010 中處理您的類別。

- **第 2、3 和 4 章。** 這三章被歸為一組,因為它們都涉及伺服器控制項。這一組章節首先檢視伺服器控制項的概念及其在 ASP.NET 開發中的關鍵角色。除了查看伺服器控制項框架外,這些章節深入探討了可供您在 ASP.NET 開發專案中使用的各種伺服器控制項。第 2 章「ASP.NET 伺服器控制項和客戶端腳本」探討了使用伺服器控制項的基本知識。第 3 章「ASP.NET 網頁伺服器控制項」涵蓋了自 ASP.NET 技術首次發布以來的控制項以及在每個 ASP.NET 發布中新增的控制項。第 4 章「驗證伺服器控制項」描述了一組特殊的伺服器控制項:用於驗證的控制項。

- **第 5 章,「使用母版頁面。」** 母版頁面提供了一種創建模板頁面的方式,使您能夠處理整個應用程式,而不是單個頁面。本章探討了這些模板的創建以及如何將其應用於 ASP.NET 應用程式中的內容頁面。

- **第 6 章,「主題和樣式。」** 在 ASP.NET 1.0/1.1 中允許使用的層疊樣式表檔案在許多方面都不夠充分,特別是在伺服器控制項方面。本章探討了如何處理應用程式所需的樣式,並展示了如何通過使用主題和主題中的樣式檔案來創建應用程式所有頁面的集中管理外觀。

- **第 7 章,「資料綁定。」** ASP.NET 的一個重要任務是呈現資料,本章探討了使您能夠在將資料發送到控制項之前以程式方式處理資料的基本能力。

- **第 8 章,「使用 ADO.NET 進行資料管理。」** 本章介紹了 ASP.NET 提供的 ADO.NET 資料模型,該模型使您能夠快速且邏輯地處理資料的檢索、更新和刪除。

- **第 9 章,「使用 LINQ 查詢。」** .NET Framework 4 包含一種稱為 LINQ 的良好訪問模型語言。LINQ 是一組擴展 .NET Framework 的功能,涵蓋了語言集成查詢、集合和轉換操作。本章介紹了 LINQ 以及如何在當今的網頁應用程式中有效使用此功能。

- **第 10 章,「使用 XML 和 LINQ to XML。」** .NET Framework 和 ASP.NET 4 內建了許多功能,使您能夠輕鬆提取、創建、操作和存儲 XML。本章仔細探討了內建於 ASP.NET 和底層 .NET Framework 的 XML 技術。

- **第 11 章,「提供者模型介紹。」** 提供者模型內建於 ASP.NET 中,使開發者的生活變得比以往任何時候都更輕鬆和高效。本章概述了這一提供者模型及其在 ASP.NET 4 中的使用。

- **第 12 章,「擴展提供者模型。」** 在介紹提供者模型後,本章探討了在 ASP.NET 4 中擴展提供者模型的一些方法。本章還回顧了幾個提供者模型的範例擴展。

- **第 13 章,「網站導航。」** 大多數開發者不僅僅開發單頁面——他們構建應用程式。ASP.NET 4 提供的應用程式功能之一是本章所涵蓋的網站導航系統。

- **第 14 章,「個人化。」** 開發者總是在尋找存儲與最終用戶相關資訊的方法。在存儲後,這些個人化資料必須在未來的訪問中持久化,或在同一應用程式中抓取其他頁面。ASP.NET 團隊開發了一種存儲這些資訊的方法——ASP.NET 個人化系統。這個系統的好處在於,您可以從 web.config 檔案中配置整個系統的行為。

- **第 15 章,「會員和角色管理。」** 本章涵蓋了為簡化在 ASP.NET 應用程式中添加身份驗證和授權而開發的會員和角色管理系統。本章重點介紹了如何使用 web.config 檔案來控制這些系統的應用,以及與底層系統協作的伺服器控制項。

- **第 16 章,「門戶框架和網頁部件。」** 本章解釋了網頁部件——將頁面封裝成更小且更易於管理的物件的方法。

- **第 17 章,「使用 ASP.NET 設計 HTML 和 CSS。」** Visual Studio 2010 對構建基於 CSS 的網頁非常重視。本章仔細探討了如何有效地處理 ASP.NET 應用程式的 HTML 和 CSS 設計。

- **第 18 章,「ASP.NET AJAX。」** AJAX 是「非同步 JavaScript 和 XML」的縮寫。在網頁應用程式開發中,它表示構建使用 XMLHttpRequest 物件的應用程式的能力。Visual Studio 2010 包含從 IDE 的預設安裝中構建 AJAX 啟用的 ASP.NET 應用程式的能力。本章探討了這種構建應用程式的方法。

- **第 19 章,「ASP.NET AJAX 控制工具包。」** 除了構建使用 AJAX 技術的 ASP.NET 應用程式的能力外,還提供了一系列控制項,使任務變得相當簡單。本章仔細探討了 ASP.NET AJAX 控制工具包以及如何在當今的應用程式中使用此工具包。

- **第 20 章,「安全性。」** 本章討論了超越 ASP.NET 4 提供的會員和角色管理功能的安全性。本章深入探討了 ASP.NET 技術中固有的身份驗證和授權機制,以及 HTTP 訪問類型和模擬。

- **第 21 章,「狀態管理。」** 由於 ASP.NET 是基於請求-回應的技術,狀態管理以及請求和回應的性能變得非常重要。本章介紹了這兩個獨立但重要的 ASP.NET 開發領域。

- **第 22 章,「快取。」** 由於 ASP.NET 的請求-回應特性,在伺服器上快取(存儲先前生成的結果、圖像和頁面)對於 ASP.NET 應用程式的性能變得相當重要。本章探討了 ASP.NET 提供的一些先進快取功能,包括 ASP.NET 4 中的一部分 SQL 快取失效功能。本章還探討了物件快取和物件快取擴展性。

- **第 23 章,「除錯和錯誤處理。」** 本章告訴您如何在應用程式中正確結構化錯誤處理。它還展示了如何使用各種除錯技術來查找應用程式可能包含的錯誤。

- **第 24 章,「檔案 I/O 和串流。」** 本章仔細探討了處理可能進入您的 ASP.NET 應用程式的各種檔案類型和串流。

- **第 25 章,「使用者和伺服器控制項。」** 您不僅可以使用隨 ASP.NET 附帶的眾多伺服器控制項,還可以使用這些控制項所使用的相同框架來構建自己的控制項。本章描述了如何構建自己的伺服器控制項以及如何在應用程式中使用它們。

- **第 26 章,「模組和處理器。」** 本章探討了兩種操作 ASP.NET 處理 HTTP 請求的方法:HttpModule 和 HttpHandler。每種方法都提供了對 ASP.NET 底層處理的獨特訪問級別,並且每種方法都可以成為創建網頁應用程式的強大工具。

- **第 27 章,「ASP.NET MVC。」** ASP.NET MVC 是最新的主要新增功能...

最後瀏覽商品 (1)