Beginning ASP.NET 4 in C# and VB (Paperback)
暫譯: ASP.NET 4 入門:C# 與 VB 實作指南 (平裝本)
Imar Spaanjaars
- 出版商: Wrox Press
- 出版日期: 2010-03-22
- 售價: $1,840
- 貴賓價: 9.5 折 $1,748
- 語言: 英文
- 頁數: 840
- 裝訂: Paperback
- ISBN: 0470502215
- ISBN-13: 9780470502211
-
相關分類:
.NET、ASP.NET、C#
已過版
買這商品的人也買了...
-
$760$600 -
$1,200$1,020 -
$780$663 -
$820$648 -
$500$395 -
$399ASP.NET 4.0 Programming (Paperback)
-
$750$675 -
$850$723 -
$750$593 -
$950$808 -
$750$638 -
$450$351 -
$680$537 -
$680$537 -
$1,080$853 -
$580$458 -
$580$493 -
$1,620$1,539 -
$680$530 -
$750$593 -
$520$411 -
$780$663 -
$560$437 -
$490$387 -
$950$808
商品描述
Anyone new to web programming should be able to follow along because no prior background in web development is assumed although it helps if you do have a basic understanding of HTML and the web in general. The book starts at the very beginning of web development by showing you how to obtain and install Visual Web Developer. The chapters that follow gradually introduce you to new technologies, building on top of the knowledge gained in the previous chapters.
Do you have a strong preference for Visual Basic over C# or the other way around? Or do you think both languages are equally cool? Or maybe you haven't made up your mind yet and want to learn both languages? Either way, you'll like this book because all code examples are presented in both languages!
Even if you have some experience with prior versions of ASP.NET, you may gain a lot from this book. Although many concepts from previous versions are brought forward into ASP.NET 4, you'll discover there's a lot of new stuff to be found in this book, including an introduction to the ADO.NET Entity Framework, the inclusion of jQuery, ASP.NET AJAX, the many changes to the ASP.NET 4 Framework, and much more.
This book teaches you how to create a feature-rich, data-driven, and interactive web site called Planet Wrox. Although this is quite a mouthful, you'll find that with Visual Web Developer 2010, developing such a web site isn't as hard as it seems. You'll see the entire process of building a web site, from installing Visual Web Developer 2010 in Chapter 1 all the way up to putting your web application on a live server in Chapter 19. The book is divided into 19 chapters, each dealing with a specific subject.
-
Chapter 1, “Getting Started with ASP.NET 4” shows you how to obtain and install Visual Web Developer 2010. You'll get instructions for downloading and installing the free edition of Visual Web Developer 2010, called the Express edition. You are also introduced to HTML, the language behind every web page. The chapter closes with an overview of the customization options that Visual Web Developer gives you.
-
Chapter 2, “Building an ASP.NET Web Site” shows you how to create a new web site and how to add new elements like pages to it. Besides learning how to create a well-structured site, you also see how to use the numerous tools in Visual Web Developer to create HTML and ASP.NET pages.
-
Chapter 3, “Designing Your Web Pages.” Visual Web Developer comes with a host of tools that allow you to create well-designed and attractive web pages. In this chapter, you see how to make good use of these tools. Additionally, you learn about CSS, the language that is used to format web pages.
-
Chapter 4, “Working with ASP.NET Server Controls.” ASP.NET Server Controls are one of the most important concepts in ASP.NET. They allow you to create complex and feature-rich web sites with very little code. This chapter introduces you to the large number of server controls that are available, explains what they are used for, and shows you how to use them.
-
Chapter 5, “Programming Your ASP.NET Web Pages.” Although the built-in CSS tools and the ASP.NET Server Controls can get you a long way in creating web pages, you are likely to use a programming language to enhance your pages. This chapter serves as an introduction to programming with a strong focus on programming web pages. Best of all: all the examples you see in this chapter (and the rest of the book) are in both Visual Basic and C#, so you can choose the language you like best.
-
Chapter 6, “Creating Consistent Looking Web Sites.” ASP.NET helps you create consistent-looking pages through the use of master pages, which allow you to define the global look and feel of a page. Skins and themes help you to centralize the looks of controls and other visual elements in your site. You also see how to create a base page that helps to centralize programming code that you need on all pages in your site.
-
Chapter 7, “Navigation.” To help your visitors find their way around your site, ASP.NET comes with a number of navigation controls. These controls are used to build the navigation structure of your site. They can be connected to your site's central site map that defines the pages in your web site. You also learn how to programmatically send users from one page to another.
-
Chapter 8, “User Controls.” User controls are reusable page fragments that can be used in multiple web pages. As such, they are great for repeating content such as menus, banners, and so on. In this chapter, you learn how to create and use user controls and enhance them with some programmatic intelligence.
-
Chapter 9, “Validating User Input.” A large part of interactivity in your site is defined by the input of your users. This chapter shows you how to accept, validate, and process user input using ASP.NET Server Controls. Additionally, you see how to send e-mail from your ASP.NET web application and how to read from text files.
-
Chapter 10, “ASP.NET AJAX.” Microsoft ASP.NET AJAX allows you to create good-looking, flicker-free web pages that close the gap between traditional desktop applications and web applications. In this chapter you learn how to use the built-in Ajax features to enhance the presence of your web pages, resulting in a smoother interaction with the web site.
-
Chapter 11, “jQuery.” jQuery is a popular, open source and cross-browser JavaScript library designed to make it easier to interact with web pages in the client’s browser. In this chapter you learn the basics of jQuery and see how to add rich visual effects and animations to your web pages.
-
Chapter 12, “Introducing Databases.” Understanding how to use a database is critical to building web sites, as most modern web sites require the use of a database. You’ll learn the basics of SQL, the query language that allows you to access and alter data in a database. In addition, you are introduced to the database tools found in Visual Web Developer that help you create and manage your SQL Server databases.
-
Chapter 13, “Displaying and Updating Data.” Building on the knowledge you gained in the previous chapter, this chapter shows you how to use the ASP.NET data-bound and data source controls to create a rich interface that enables your users to interact with the data in the database that these controls target.
-
Chapter 14, “LINQ and the ADO.NET Entity Framework.” LINQ is Microsoft’s solution for accessing objects, databases, XML, and more. The ADO.NET Entity Framework (EF) is Microsoft's new technology for database access. This chapter shows you what LINQ is all about, how to use the visual EF designer built into Visual Studio, and how to write LINQ to EF queries to get data in and out of your SQL Server database.
-
Chapter 15, “Working with Data—Advanced Topics.” While earlier chapters focused mostly on the technical foundations of working with data, this chapter looks at the same topic from a front-end perspective. You see how to change the visual appearance of your data through the use of control styles. You also see how to interact with the data-bound controls and how to speed up your application by keeping a local copy of frequently accessed data.
-
Chapter 16, “Security in Your ASP.NET 4 Web Site.” Although presented quite late in the book, security is a first-class, important topic. This chapter shows you how to make use of the built-in ASP.NET features related to security. You learn about a number of application services that facilitate security. You also learn how to let users sign up for an account on your web site, how to distinguish between anonymous and logged-on users, and how to manage the users in your system.
-
Chapter 17, “Personalizing Web Sites.” Building on the security features introduced in Chapter 16, this chapter shows you how to create personalized web pages with content targeted at individual users. You see how to configure and use ASP.NET Profile that enables you to store personalized data for known and anonymous visitors.
-
Chapter 18, “Exception Handling, Debugging, and Tracing.” In order to understand, improve, and fix the code you write for your ASP.NET web pages you need good debugging tools. Visual Web Developer ships with great debugging support that enables you to diagnose the state of your application at run time, helping you find and fix problems before your users do.
-
Chapter 19, “Deploying Your Web Site.” By the end of the book, you should have a web site that is ready to be shown to the world. But how exactly do you do that? What are the things you need to know and understand to put your web site out in the wild? This chapter gives the answers and provides you with a good look at configuring different production systems in order to run your final web site.
Note: CD-ROM/DVD and other supplementary materials are not included as part of eBook file.
商品描述(中文翻譯)
本書適合任何想要學習如何在 Microsoft 平台上建立豐富且互動的網站的人士。透過本書所獲得的知識,您將建立一個良好的基礎,以便構建各類型的網站,從簡單的興趣相關網站到您可能為商業目的創建的網站。
對於網頁程式設計的新手來說,這本書是可以輕鬆跟隨的,因為不需要具備網頁開發的背景,雖然如果您對 HTML 和網路有基本的了解會更有幫助。本書從網頁開發的最基礎開始,教您如何獲取和安裝 Visual Web Developer。接下來的章節逐步介紹新技術,並在前面章節所獲得的知識基礎上進行擴展。
您是否對 Visual Basic 比 C# 更有偏好,或是反之?或者您認為這兩種語言同樣出色?又或者您還未下定決心,想要學習這兩種語言?無論如何,您都會喜歡這本書,因為所有的程式碼範例都以這兩種語言呈現!
即使您對早期版本的 ASP.NET 有一些經驗,您仍然可以從本書中獲益良多。雖然許多概念從早期版本延續到 ASP.NET 4,但您會發現本書中有許多新內容,包括 ADO.NET Entity Framework 的介紹、jQuery 的使用、ASP.NET AJAX 的整合、ASP.NET 4 Framework 的許多變更等等。
本書教您如何創建一個功能豐富、數據驅動且互動的網站,名為 Planet Wrox。雖然這聽起來有點複雜,但您會發現使用 Visual Web Developer 2010 開發這樣的網站並不像看起來那麼困難。您將看到從第 1 章安裝 Visual Web Developer 2010 到第 19 章將您的網頁應用程式放置在實際伺服器上的整個過程。本書分為 19 章,每一章都處理特定主題。
- **第 1 章,「開始使用 ASP.NET 4」** 教您如何獲取和安裝 Visual Web Developer 2010。您將獲得下載和安裝免費版本 Visual Web Developer 2010(稱為 Express 版本)的指導。您還將了解 HTML,這是每個網頁背後的語言。本章結尾將概述 Visual Web Developer 提供的自訂選項。
- **第 2 章,「建立 ASP.NET 網站」** 教您如何創建一個新網站以及如何向其中添加新元素,如頁面。除了學習如何創建結構良好的網站外,您還將看到如何使用 Visual Web Developer 中的眾多工具來創建 HTML 和 ASP.NET 頁面。
- **第 3 章,「設計您的網頁」**。Visual Web Developer 附帶了一系列工具,讓您能夠創建設計良好且吸引人的網頁。在本章中,您將看到如何充分利用這些工具。此外,您還將了解 CSS,這是用於格式化網頁的語言。
- **第 4 章,「使用 ASP.NET 伺服器控制項」**。ASP.NET 伺服器控制項是 ASP.NET 中最重要的概念之一。它們使您能夠用非常少的程式碼創建複雜且功能豐富的網站。本章介紹了可用的大量伺服器控制項,解釋了它們的用途,並展示了如何使用它們。
- **第 5 章,「編程您的 ASP.NET 網頁」**。雖然內建的 CSS 工具和 ASP.NET 伺服器控制項可以幫助您創建網頁,但您可能會使用程式語言來增強您的頁面。本章作為編程的介紹,強調了網頁編程。最棒的是:您在本章(以及本書的其餘部分)中看到的所有範例都以 Visual Basic 和 C# 兩種語言呈現,因此您可以選擇您最喜歡的語言。
- **第 6 章,「創建一致外觀的網站」**。ASP.NET 通過使用母版頁面幫助您創建一致外觀的頁面,這使您能夠定義頁面的全局外觀和感覺。外觀和主題幫助您集中控制和其他視覺元素的外觀。您還將看到如何創建一個基礎頁面,以幫助集中您在網站所有頁面上需要的程式碼。
- **第 7 章,「導航」**。為了幫助您的訪客在網站中找到方向,ASP.NET 附帶了多個導航控制項。這些控制項用於構建網站的導航結構。它們可以連接到定義您網站頁面的中央網站地圖。您還將學習如何以程式方式將用戶從一個頁面發送到另一個頁面。
- **第 8 章,「使用者控制項」**。使用者控制項是可重用的頁面片段,可以在多個網頁中使用。因此,它們非常適合重複內容,如菜單、橫幅等。在本章中,您將學習如何創建和使用使用者控制項,並用一些程式邏輯增強它們。
- **第 9 章,「驗證用戶輸入」**。網站的互動性很大程度上取決於用戶的輸入。本章教您如何使用 ASP.NET 伺服器控制項接受、驗證和處理用戶輸入。此外,您將看到如何從 ASP.NET 網頁應用程式發送電子郵件以及如何從文本文件中讀取數據。
- **第 10 章,「ASP.NET AJAX」**。Microsoft ASP.NET AJAX 使您能夠創建外觀良好、無閃爍的網頁,縮小傳統桌面應用程式和網頁應用程式之間的差距。在本章中,您將學習如何使用內建的 Ajax 功能來增強網頁的存在感,從而實現更流暢的網站互動。
- **第 11 章,「jQuery」**。jQuery 是一個流行的開源跨瀏覽器 JavaScript 庫,旨在使與客戶端瀏覽器中的網頁互動變得更容易。在本章中,您將學習 jQuery 的基礎知識,並了解如何為您的網頁添加豐富的視覺效果和動畫。
- **第 12 章,「介紹資料庫」**。了解如何使用資料庫對於建立網站至關重要,因為大多數現代網站都需要使用資料庫。您將學習 SQL 的基礎知識,這是一種查詢語言,允許您訪問和更改資料庫中的數據。此外,您還將了解 Visual Web Developer 中的資料庫工具,這些工具幫助您創建和管理 SQL Server 資料庫。
- **第 13 章,「顯示和更新數據」**。在前一章所獲得的知識基礎上,本章教您如何使用 ASP.NET 數據綁定和數據源控制項來創建豐富的介面,使您的用戶能夠與這些控制項所針對的資料庫中的數據互動。
- **第 14 章,「LINQ 和 ADO.NET Entity Framework」**。LINQ 是 Microsoft 用於訪問對象、資料庫、XML 等的解決方案。ADO.NET Entity Framework (EF) 是 Microsoft 的新資料庫訪問技術。本章將向您展示 LINQ 的基本概念,如何使用內建於 Visual Studio 的視覺 EF 設計器,以及如何編寫 LINQ 到 EF 的查詢以在 SQL Server 資料庫中獲取和存取數據。
- **第 15 章,「處理數據—進階主題」**。雖然早期章節主要集中於處理數據的技術基礎,但本章從前端的角度看待同一主題。您將看到如何通過使用控制樣式來改變數據的視覺外觀。您還將看到如何與數據綁定控制項互動,以及如何通過保留經常訪問的數據的本地副本來加速應用程式。
- **第 16 章,「ASP.NET 4 網站的安全性」**。雖然在書中較晚介紹,但安全性是一個重要的主題。本章教您如何利用 ASP.NET 內建的安全性功能。您將了解一些促進安全性的應用服務。您還將學習如何讓用戶在您的網站上註冊帳戶,如何區分匿名用戶和已登錄用戶,以及如何管理系統中的用戶。
- **第 17 章,「個性化網站」**。在第 16 章介紹的安全性功能的基礎上,本章教您如何創建針對個別用戶的個性化網頁內容。您將看到如何配置和使用 ASP.NET Profile,以便為已知和匿名訪客存儲個性化數據。
- **第 18 章,「例外處理、除錯和追蹤」**。為了理解、改進和修復您為 ASP.NET 網頁編寫的程式碼,您需要良好的除錯工具。Visual Web Developer 附帶了出色的除錯支持,使您能夠在運行時診斷應用程式的狀態,幫助您在用戶發現問題之前找到並修復問題。
- **第 19 章,「部署您的網站」**。到本書結束時,您應該擁有一個準備好向世界展示的網站。但您究竟該如何做到這一點?您需要了解和理解哪些事情才能將您的網站放到公眾面前?本章將給出答案,並提供有關配置不同生產系統以運行您的最終網站的良好指導。
**注意:** CD-ROM/DVD 和其他補充材料不包含在電子書文件中。