学习ASP.NET3.5

学习ASP.NET3.5
作 者: 丽波蒂 赫维茨 麦克唐纳德
出版社: 英伟出版社
丛编项:
版权说明: 本书为公共版权或经版权方授权,请支持正版图书
标 签: ASP
ISBN 出版时间 包装 开本 页数 字数
未知 暂无 暂无 未知 0 暂无

作者简介

  丽波蒂(Jesse Liberty),是OReilly的《Learning ASP.NET 2.0 with AJAX》《Programming C#》和《Programming.NET 3.5》等畅销书的作者。

内容简介

《学习ASP.NET 3.5 第二版》教你如何使用具有AJAX功能的最新版ASP.NET和Visual Studio 2008开发效率的功能来创造引人入胜和互动的应用程序。你所需要准备好的只不过是HTML基础知识和构建具有专业水准网站的强烈愿望。本书的每一章都相对独立,讲解了各种新技能——配合带有图解和大量详细注释的例子——这些例子可以马上就应用到实际当中。在每一章里,你还可以通过实践性很强的习题来练习所学到的东西,并通过要点复习测验来检验自己的理解,这些都是本书特有的知识构建方法。通过本书,你将学到:•关于ASENET网站开发中不同方面的系列教程。•整合AJAX的例子。•用于演示新概念如何运作的例子——每章都包含一个处于不同开发阶段的完整例子,或者是一系列的小例子。•关于Visual Basic、JavaScript和SQL的侧栏要点提示,用于帮助那些对这些领域缺乏甚至没有背景知识的读者。•最后一章中的示例网络应用程序结合了所有你学到的知识或者技能。如果想使用世界上最流行的网络开发技术来加快开发速度,《学习ASP.NET3.5》就是为这个任务所准备的最佳资源。作者简介:丽波蒂(Jesse Liberty),是O'Reilly的《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