《學(xué)習(xí)ASP.NET 3.5 第二版》教你如何使用具有AJAX功能的最新版ASP.NET和Visual Studio 2008開發(fā)效率的功能來創(chuàng)造引人入勝和互動(dòng)的應(yīng)用程序。你所需要準(zhǔn)備好的只不過是HTML基礎(chǔ)知識和構(gòu)建具有專業(yè)水準(zhǔn)網(wǎng)站的強(qiáng)烈愿望。本書的每一章都相對獨(dú)立,講解了各種新技能——配合帶有圖解和大量詳細(xì)注釋的例子——這些例子可以馬上就應(yīng)用到實(shí)際當(dāng)中。在每一章里,你還可以通過實(shí)踐性很強(qiáng)的習(xí)題來練習(xí)所學(xué)到的東西,并通過要點(diǎn)復(fù)習(xí)測驗(yàn)來檢驗(yàn)自己的理解,這些都是本書特有的知識構(gòu)建方法。通過本書,你將學(xué)到:•關(guān)于ASENET網(wǎng)站開發(fā)中不同方面的系列教程。•整合AJAX的例子。•用于演示新概念如何運(yùn)作的例子——每章都包含一個(gè)處于不同開發(fā)階段的完整例子,或者是一系列的小例子。•關(guān)于Visual Basic、JavaScript和SQL的側(cè)欄要點(diǎn)提示,用于幫助那些對這些領(lǐng)域缺乏甚至沒有背景知識的讀者。•最后一章中的示例網(wǎng)絡(luò)應(yīng)用程序結(jié)合了所有你學(xué)到的知識或者技能。如果想使用世界上最流行的網(wǎng)絡(luò)開發(fā)技術(shù)來加快開發(fā)速度,《學(xué)習(xí)ASP.NET3.5》就是為這個(gè)任務(wù)所準(zhǔn)備的最佳資源。作者簡介:麗波蒂(Jesse Liberty),是O'Reilly的《Learning ASP.NET 2.0 with AJAX》《Programming C#》和《Programming.NET 3.5》等暢銷書的作者。
作者簡介
麗波蒂(Jesse Liberty),是OReilly的《Learning ASP.NET 2.0 with AJAX》《Programming C#》和《Programming.NET 3.5》等暢銷書的作者。
圖書目錄
Preface. 1. Getting Started Hello World Creating a New Web Site Creating HelloWorld Making the HelloWorld Web Site Interactive What You Just Did Summary Brain Builder Quiz Exercise 2. Building Web Applications Mastering Web Site Fundamentals The Page Controls Code-Behind Files Events and Postbacks Synchronous and Asynchronous Postbacks The Page Load event and synchronous postback Adding asynchronous postbacks Using Controls Organizing the Properties Window Finding properties with IntelliSense Basic Controls Creating Tables Setting Properties Selection Controls Panels List Selection Controls Adding items with the Item editor Adding items in Source view More Selection Controls Using Selections to Display Text Images Links LinkButtons Source Code Summary Brain Builder Quiz Exercises 3. Snappier Web Sites with AJAX Take a Walk on the Client Side ScriptManager and UpdatePanel Controlling Browser History Extending Controls with the Control Toolkit TextBoxWaterMarkExtender PopupControlExtender CollapsiblePanelExtender Source Code Listing Summary Brain Builder Quiz Exercises 4. Saving and Retrieving Data Getting Data from a Database Binding Data Controls Create a Sample Web Page Using a DataSource Control Pay No Attention to That Man Behind the Curtain GridView Control Auto-Generated Code Adding Insert, Update, and Delete Statements Displaying and Updating the Data Take It for a Spin Modifying the Grid Based on Conditions Selecting Data from the GridView Passing Parameters to the SELECT Query LINQ Creating the Object Model Using the Object Model Editing Data in LINQ ASP.NET Dynamic Data Source Code Listings Summary Brain Builder Quiz Exercises 5. Validation Validation Controls The RequiredFieldValidator The Summary Control The Compare Validator Checking the Input Type Comparing to Another Control Range Checking Regular Expressions Custom Validation Summary Brain Builder Quiz Exercises 6. Style Sheets, Master Pages, and Navigation Styles and Style Sheets Cascading Styles Inline Styles Pros and cons Document-Level Styles Pros and cons External Style Sheets Master Pages Creating a Master Page Adding Content Pages Using Nested Master Pages Changing the Master Page at Runtime Navigation Buttons and HyperLinks Menus and Bread Crumbs Site Maps Using Sitemaps TreeView Customizing the look and feel of the TreeView Replacing the TreeView with a menu control Accessing site map nodes programmatically Bread Crumbs Summary Brain Builder Quiz Exercises 7. State and Life Cycle.. Page Life Cycle State View State Session State Application State Summary Brain Builder Quiz Exercises 8. Errors, Exceptions, and Bugs, Oh Myl Creating the Sample Application Tracing Page-Level Tracing Inserting into the Trace Log Debugging The Debug Toolbar Breakpoints Setting a breakpoint Breakpoints window Breakpoint properties Breakpoint icons Stepping Through Code Examining Variables and Objects Debug Windows Immediate window Locals window Watch window Call Stack window Error Handling Unhandled Errors Application-Wide Error Pages Page-Specific Error Pages Summary Brain Builder Quiz Exercises 9. Security Forms-Based Security Creating Users with the WAT Managing Users Programmatically Creating User Accounts Creating a Welcome Page Creating a Login Page Roles Restricting Access Testing for Login Status Testing for Role-Based Authentication Membership Summary Brain Builder Quiz Exercises 10. Personalization Profiles Simple Data Types Complex Data Types Anonymous Personalization Adding an Anonymous Profile Migrating Anonymous Data to an Actual Users Record Themes and Skins Create the Test Site Organize Site Themes and Skins Enable Themes and Skins Specify Themes for Your Page Using Named Skins Summary Brain Builder Quiz Exercises 11. Putting It All Together Getting Started Adding Styles Using Master Pages Setting Up Roles and Users Logging In Navigation Products Page Adding AJAX Cart Page Purchase Page Confirm Page Custom Error Pages Summary Source Code Listings Cart Page Confirm Page Home Page Login Page Master Page Products Page Purchase Page Web.con fig A. Installing the Stuff Youll Need B. Copying a Web Site C. Publishing Your Web Site Database Support Your Domain Name Picking a Hosting Site Setting Up the Account Uploading the Web Site Files Uploading Data Creating the script Logging Into the hosting database and running the script Updating the Connection Strings Notes and Tips Running Web Server Software Security Configuring the Firewall Hosting a Web Site Under IIS IIS 7 IIS 6 Setting Up the Domain Name D. Answers to Quizzes and Exercises Index