此商品已下架,若仍需天瓏代為查詢或代購書籍,請與門市客服人員聯繫,或 E-mail 至 service@tenlong.com.tw 將有專人為您服務。

Beginning ASP.NET 3.5: In C# and VB (Paperback)
暫譯: ASP.NET 3.5 入門:使用 C# 和 VB

Imar Spaanjaars

  • 出版商: Wrox Press
  • 出版日期: 2008-03-04
  • 售價: $1,770
  • 貴賓價: 9.5$1,682
  • 語言: 英文
  • 頁數: 768
  • 裝訂: Paperback
  • ISBN: 047018759X
  • ISBN-13: 9780470187593
  • 相關分類: .NETASP.NETC#
  • 已過版

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

商品描述

This book is for anyone who wants to learn how to build rich and interactive web sites that run on the Microsoft platform. With the knowledge you gain from this book, you create a great foundation to build any type of web site, ranging from simple hobby-related web sites to sites you may be creating for commercial purposes.

Anyone new to web programming should be able to follow along because no prior background in web development is assumed. 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're already familiar with previous versions of ASP.NET, with the 1.x versions in particular, you may gain a lot from this book. Although many concepts from ASP.NET 2.0 are brought forward into ASP.NET 3.5, you'll discover there's a host of new stuff to be found in this book, including an introduction to LINQ, the new CSS and JavaScript debugging tools, new ASP.NET controls, and integrated support for ASP.NET Ajax.

To build effective and attractive database-driven web sites, you need two things: a solid and fast framework to run your web pages on and a rich and extensive environment to create and program these web pages. With ASP.NET 3.5 and Visual Web Developer 2008 you get both. Together they form the platform to create dynamic and interactive web applications.

ASP.NET 3.5 builds on top of its popular predecessor ASP.NET 2.0. While maintaining backward compatibility with sites built using this older version, the Microsoft .NET Framework 3.5 in general and ASP.NET 3.5 in particular add a lot of new, compelling features to the mix.

Continuing the path of "less code" that was entered with the 2.0 version of the .NET Framework, ASP.NET 3.5 lets you accomplish more with even less code. New features like LINQ that are added to the .NET Framework allow you to access a database with little to no hand written code. The integration of Microsoft ASP.NET Ajax into the ASP.NET Framework and Visual Web Developer means you can now create fast responding and spiffy web interfaces simply by dragging a few controls onto your page and setting a few properties. This book gives you an in-depth look at both these technologies.

The support for cascading style sheets (CSS), the language to lay out and format web pages, has undergone a major overhaul in Visual Web Developer. The design time support, that shows you how a page will eventually look in the browser, has been vastly improved. Additionally, Visual Web Developer now ships with a lot of tools that make writing CSS a breeze.

However, drag-and-drop support and visual tools are not the only things you'll learn from this book. ASP.NET 3.5 and Visual Web Developer 2008 come with a great and extensive set of tools to help you program your web applications. These tools range from the new LINQ syntax that allows you to query data and databases in your web applications, to the vastly improved debugging capabilities that allow you to debug your application from client-side JavaScript all the way up into your server-side code, all with the same familiar user interface, commands, and actions.

Under the hood, ASP.NET 3.5 makes use of the same run-time as version 2.0. This ensures a great backward compatibility with that version, which means that ASP.NET 2.0 applications continue to run under the new framework. But don't be fooled by the fact that the run-time hasn't changed. Although the technical underpinnings needed to execute your web application haven't changed, the .NET 3.5 Framework and ASP.NET add a lot of new features, as you'll discover in this book.

Probably the best thing of Visual Web Developer 2008 is its price: it's available for free. Although the commercial versions of Visual Studio 2008 ship with Visual Web Developer, you can also download and install the free Express Edition. This makes Visual Web Developer 2008 and ASP.NET 3.5 probably the most attractive and compelling web development technologies available today.

This book teaches you how to create a feature-rich, data-driven, and interactive web site. Although this is quite a mouthful, you'll find that with Visual Web Developer 2008 this isn’t as hard as it seems. You'll see the entire process of building a web site, from installing Visual Web Developer 2008 in Chapter 1 all the way up to putting your web application on a live server in Chapter 18. The book is divided into 18 chapters, each dealing with a specific subject.

Chapter 1, “Getting Started With ASP.NET 3.5.” In this chapter you'll see how to obtain and install Visual Web Developer 2008. You'll get instructions for downloading and installing the free edition of Visual Web Developer 2008, 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.” This chapter 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 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.” Consistency is important to give your web site an attractive and professional appeal. 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 like 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, “Introduction to Databases.” Understanding how to use databases is critical to building modern 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 12, “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 13, “LINQ.” LINQ is Microsoft's new solution for accessing objects, databases, XML, and more. In this chapter you'll see how to use LINQ to SQL to access SQL Server databases. Instead of writing a lot of manual code, you create a bunch of LINQ objects that do the heavy work for you. This chapter shows you what LINQ is all about, how to use the visual LINQ designer built into Visual Web Develo...

商品描述(中文翻譯)

這本書適合任何想學習如何在 Microsoft 平台上建立豐富且互動的網站的人。透過本書所獲得的知識,您將建立一個良好的基礎,以便建立各類型的網站,從簡單的興趣相關網站到您可能為商業目的創建的網站。

對於任何新手來說,這本書都能輕鬆跟隨,因為不需要具備任何網頁開發的背景。書籍從網頁開發的最初開始,教您如何獲取和安裝 Visual Web Developer。接下來的章節逐步介紹新技術,並在前面章節所獲得的知識基礎上進行擴展。

您是否對 Visual Basic 比 C# 更有偏好,或是反之?還是您認為這兩種語言同樣出色?或者您可能還沒有下定決心,想學習這兩種語言?無論如何,您都會喜歡這本書,因為所有的程式碼範例都以這兩種語言呈現!

即使您已經熟悉 ASP.NET 的舊版本,特別是 1.x 版本,您仍然可以從這本書中獲益良多。雖然許多 ASP.NET 2.0 的概念被延續到 ASP.NET 3.5,但您會發現這本書中有許多新內容,包括 LINQ 的介紹、新的 CSS 和 JavaScript 除錯工具、新的 ASP.NET 控制項,以及對 ASP.NET Ajax 的整合支援。

要建立有效且吸引人的資料庫驅動網站,您需要兩樣東西:一個穩固且快速的框架來運行您的網頁,以及一個豐富且廣泛的環境來創建和編程這些網頁。使用 ASP.NET 3.5 和 Visual Web Developer 2008,您可以同時獲得這兩者。它們共同構成了創建動態和互動網頁應用程式的平台。

ASP.NET 3.5 在其受歡迎的前身 ASP.NET 2.0 的基礎上進行了擴展。在保持與使用舊版本構建的網站的向後相容性的同時,Microsoft .NET Framework 3.5 和 ASP.NET 3.5 特別添加了許多新的、引人注目的功能。

繼續沿著 .NET Framework 2.0 版本所開啟的「更少程式碼」的路徑,ASP.NET 3.5 讓您用更少的程式碼完成更多的工作。新增的 LINQ 功能使您能夠以幾乎不需要手寫程式碼的方式訪問資料庫。Microsoft ASP.NET Ajax 的整合意味著您現在可以通過簡單地將幾個控制項拖放到頁面上並設置幾個屬性來創建快速響應和炫酷的網頁介面。本書將深入探討這兩項技術。

對於層疊樣式表(CSS)的支援,這是一種用於佈局和格式化網頁的語言,在 Visual Web Developer 中經歷了重大改進。設計時支援顯示頁面在瀏覽器中最終的外觀,已大幅改善。此外,Visual Web Developer 現在隨附許多工具,使撰寫 CSS 變得輕而易舉。

然而,拖放支援和視覺工具並不是您將從這本書中學到的唯一內容。ASP.NET 3.5 和 Visual Web Developer 2008 提供了一套強大且廣泛的工具,幫助您編程網頁應用程式。這些工具從新的 LINQ 語法開始,允許您在網頁應用程式中查詢資料和資料庫,到大幅改善的除錯功能,讓您能夠從客戶端 JavaScript 一直到伺服器端程式碼進行除錯,所有這些都使用相同的熟悉用戶介面、命令和操作。

在底層,ASP.NET 3.5 使用與 2.0 版本相同的執行時。這確保了與該版本的良好向後相容性,這意味著 ASP.NET 2.0 應用程式可以在新框架下繼續運行。但不要被執行時未改變的事實所迷惑。雖然執行您的網頁應用程式所需的技術基礎沒有改變,但 .NET 3.5 Framework 和 ASP.NET 添加了許多新功能,您將在本書中發現。

Visual Web Developer 2008 最好的地方可能是它的價格:它是免費的。雖然商業版本的 Visual Studio 2008 隨附 Visual Web Developer,但您也可以下載並安裝免費的 Express Edition。這使得 Visual Web Developer 2008 和 ASP.NET 3.5 可能成為當今最具吸引力和引人注目的網頁開發技術。

本書教您如何創建一個功能豐富、資料驅動且互動的網站。雖然這聽起來有點複雜,但您會發現使用 Visual Web Developer 2008 這並不像看起來那麼困難。您將看到建立網站的整個過程,從第一章安裝 Visual Web Developer 2008 到第十八章將您的網頁應用程式放到實際伺服器上。這本書分為 18 章,每章處理一個特定主題。

**第一章,「開始使用 ASP.NET 3.5。」** 在這一章中,您將看到如何獲取和安裝 Visual Web Developer 2008。您將獲得下載和安裝免費版本 Visual Web Developer 2008(稱為 Express Edition)的指導。您還將了解 HTML,這是每個網頁背後的語言。這一章以概述 Visual Web Developer 提供的自訂選項作結。

**第二章,「建立 ASP.NET 網站。」** 本章教您如何創建一個新網站以及如何向其中添加新元素,如頁面。除了學習如何創建結構良好的網站外,您還將看到如何使用 Visual Web Developer 中的眾多工具來創建 HTML 和 ASP.NET 頁面。

**第三章,「設計您的網頁。」** Visual Web Developer 附帶了一系列工具,讓您能夠創建設計良好且吸引人的網頁。在這一章中,您將看到如何充分利用這些工具。此外,您還將了解 CSS,這是用於格式化網頁的語言。

**第四章,「使用 ASP.NET 控制項。」** ASP.NET 伺服器控制項是 ASP.NET 中最重要的概念之一。它們使您能夠用非常少的程式碼創建複雜且功能豐富的網站。本章將介紹可用的大量伺服器控制項,解釋它們的用途,並展示如何使用它們。

**第五章,「編程您的 ASP.NET 網頁。」** 雖然內建的 CSS 工具和 ASP.NET 伺服器控制項可以幫助您在創建網頁時走得很遠,但您可能會使用程式語言來增強您的頁面。本章作為編程的介紹,強調網頁編程。最棒的是:您在本章(以及本書的其餘部分)中看到的所有範例都以 Visual Basic 和 C# 兩種語言呈現,因此您可以選擇您最喜歡的語言。

**第六章,「創建一致外觀的網站。」** 一致性對於使您的網站具有吸引力和專業感至關重要。ASP.NET 通過使用母版頁面來幫助您創建一致外觀的頁面,這使您能夠定義頁面的全局外觀和感覺。外觀和主題幫助您集中控制和其他視覺元素的外觀。您還將看到如何創建一個基礎頁面,以幫助集中您在網站所有頁面上需要的程式碼。

**第七章,「導航。」** 為了幫助您的訪客在網站中找到路徑,ASP.NET 提供了多個導航控制項。這些控制項用於構建網站的導航結構。它們可以連接到定義您網站頁面的中央網站地圖。您還將學習如何以程式方式將用戶從一個頁面發送到另一個頁面。

**第八章,「用戶控制項。」** 用戶控制項是可重用的頁面片段,可以在多個網頁中使用。因此,它們非常適合重複內容,如菜單、橫幅等。在這一章中,您將學習如何創建和使用用戶控制項,並用一些程式邏輯增強它們。

**第九章,「驗證用戶輸入。」** 網站的互動性很大程度上取決於用戶的輸入。本章將教您如何使用 ASP.NET 伺服器控制項接受、驗證和處理用戶輸入。此外,您將看到如何從 ASP.NET 網頁應用程式發送電子郵件以及如何從文本文件中讀取數據。

**第十章,「ASP.NET Ajax。」** Microsoft ASP.NET Ajax 使您能夠創建外觀良好、無閃爍的網頁,縮小傳統桌面應用程式和網頁應用程式之間的差距。在這一章中,您將學習如何使用內建的 Ajax 功能來增強網頁的存在感,從而實現與網站的更流暢互動。

**第十一章,「數據庫介紹。」** 理解如何使用數據庫對於建立現代網站至關重要,因為大多數現代網站都需要使用數據庫。您將學習 SQL 的基本知識,這是一種查詢語言,允許您訪問和更改數據庫中的數據。此外,您還將了解 Visual Web Developer 中的數據庫工具,這些工具幫助您創建和管理 SQL Server 數據庫。

**第十二章,「顯示和更新數據。」** 本章基於您在前一章中獲得的知識,教您如何使用 ASP.NET 的數據綁定和數據源控制項來創建豐富的介面,使用戶能夠與這些控制項所針對的數據庫中的數據進行互動。

**第十三章,「LINQ。」** LINQ 是 Microsoft 用於訪問對象、數據庫、XML 等的新解決方案。在這一章中,您將看到如何使用 LINQ to SQL 訪問 SQL Server 數據庫。您不需要編寫大量手動程式碼,而是創建一堆 LINQ 對象來為您完成繁重的工作。本章將向您展示 LINQ 的全部內容,以及如何使用內建於 Visual Web Developer 的視覺 LINQ 設計器。