ASP.NET编程(影印版 第三版)

ASP.NET编程(影印版 第三版)
作 者: 利伯蒂 赫沃兹
出版社: 东南大学出版社
丛编项: 东南大学出版社O'REILLY图书系列
版权说明: 本书为公共版权或经版权方授权,请支持正版图书
标 签: ASP.NET
ISBN 出版时间 包装 开本 页数 字数
未知 暂无 暂无 未知 0 暂无

作者简介

  Jesse Liberty是畅销的《Programming C#》和其他很多Web及面向对象程序设计方面的著作的作者。作为Liberty Associates,Inc.总裁,他提供ASP.NET、C#、C++和相关主题的编程、咨询服务以及在线培训。

内容简介

自从2001年发布以来,微软的Visual Studio和ASP.NET已成为创建基于Windows的Web应用程序和服务的最受欢迎的工具。成千上万的开发者已经利用这本权威书籍来掌握这些工具。现在,在这个完全修订和扩展的版本中,作者Jesse Liberty和Dan Hurwitz向你展示如何使用Visual Studio 2005、C# 2.0和ASP.NET 2.0来构建下一代Web应用程序。你很快就能够用比你所能想象的更少的时间及更少的代码来建立更安全和更交互的站点。《ASP.NET编程》以对ASP.NET 2.0和Visual Studio 2005的全面概述开始,这样使你能尽可能快地入门。前几章深入讨论了控制、事件、ASP.NET Web页面的生命周期以及其他ASP.NET框架的基本概念。《ASP.NET编程(影印版)》还包括以下新的主题:创建与Master page一致的外貌风格。使站点易于个性化。增加站点导航,包括站点地图和零碎的信息。使用新的成员资格和授权控制来实现基于窗体的安全。使用新的数据控制和ADO.NET 2.0来存取与绑定数据。简化应用程序的配置和部署。

图书目录

Preface

1.ASP.NET 2.0

.NET Framework 2.O

ASP.NET 2.0

New Features

Specia1 Folders Make Integration Easier

Security

Personalization

Master Pages

Navigation

Web Sites WithOUt IIS

Improved Controls

New Controls

Visual Studio 2005(VS2005)

Mobile Devices

On to VS2005

2.VisuaI Studio 2005

Start Page

File System

HTTP

FTP

Cteating Your First Web Page

Projects and Solutions

Solutions

Projects and Files

Templates

Proiect Names

The Integrated Development Environment(IDE)

Lavout

Building and Running

Menus and T00lbars

FileMenu

Edit Menu

View Menu

Refactor Menu

Website Menu

Project Menu

Build Menu

Debug Menu

Data Menu

Format Menu

Tools Menu

Window Menu

Help Menu

3.Controls:Fundamental Concepts

Events

ASP.NET Events

Event Arguments

Application and Session Events

Page and Control Events

POStback Versus Non-POStback Events

IsPostBack

Events in Visual Studio 2005

Multiple Controls to one Event Handler

ASP.NET Server Controls

ASP.NET and Browsers

ASP.NET Server Control Class Hierarchv

CSS Stvles

HTML Server Controls

Client-Side Processing

4.Basic Controls

The Basics

Label Control

TextBOX Control

HiddenField Control

Button Controls

HyperLink Control

Selecting Values

CheckBOX Control

RadioButton Control

Selecting from a L1St

ListItem object

CheckBOXList Control

RadioButtonList Control

DrodDownLoSt Control

ListBOX Control

BuUetedList Contr01

Tables

Table Rows

Table Cells

CeU Width

Panel Control

Images

Image Control

ImageMap Control

5.Advanced Controls

MultiView and View Controls

Wizard Control

FileUpload Control

AdRotator Control

Advertisement File

Using AdRotator

Calendar

Selecting Dates in the Calendar

Controlling the Calendar’s Appearance

Programming the Calendar Control

6.Web Site Fundamentals

ThePage

Code-Behind

Moving to Another Page

HyperLink

Server.Transfer

Response.Redirect

Cross-Page Posting

State

Session State

View Srate

State Bag

Application Stare

Lifecycle

Directives

Application DirectiVe

Assembly Directive

Control Directive

Implements DirectiVe

Import Directive

Master Directive

MasterType Directive

outputCache Directive

Page Directive

Reference Directive

Register Directive

7.Tracing,Debugging,and Error Handling

Creating the Sample Application

Tracing

Page-Level Tracing

Inserting into the Trace Log

Application-Lfivel Tracing

Trace Viewer

Debugging

The Debug Toolbar

BrcakDoints

Stepping Thtongh Code

Examining Variables and Objects

Debug Windows

Error Handling

Unhandled Errors

Application-Wide Error Pages

Page-Specific Error Pages

8.VaIidation

The RequoredFieldValidator

The Summary Control

The Compare Validator

Checking the Input Type

Comparing to Another Contro1

Range Checking

Regular Expressions

Custom Validation

Validation Groups

9.Web Data Access

Getting Data from a Database

Data Source Contro1s

GridView Contro1

Adding Insert,Update,and Delete Statements

Multiuser Updates

Optimistlc Concurrency

Displaying and Updating the Grid

TakeItfor a Spin

Tracking the Update with Events

Modifying the Grid Based on Events

Passing Parameters to the Select Query

DataLiSt Contro1

Editing Items in List Controls

Deleting Items from a LiSt Control

Repeater Control

DetailsView Contro1:Examining One Record at a Time

FormView Control:Examining Single Records as Master/Detail

Editing with FormView

Inserting New Records

DetailsView and FormView Events

10.ADO.NET

The ADO.NET Object Model

The DataSet Class

Dbcommand and Dbconnection

The DataAdapter object

The Data Reader obiect

Getting Started with ADo.NET

Using a DataReader

Crearing Data Relations Within DataSets

creating Data objects by Hand

Bug Database DeSign

Creating the DataTable by Hand

Creating Primary Keys

Creating Foreign Keys

Creating Data Relations

Stored Procedures

Creating a Simple Stored Procedure

Stored Procedures with Parameters

Updating with SQL and ADo.NET

Updating Data With Transactlons

The ACID Test

Implementreg Transactions

Binding to Business obiects

11.Forms·Based Security

AUthentication

Anonymous Access

Windows AUthentication

Passport AUthentication

Forms Authentication

Forms-Based Authentication in Detail

Create the ApplicatiOn

Addinll a Password Reminder

Add Roles to ASP.NET Accounts

Using the Web Administrator T00l to Set Up Roles

Restricting Access to Pages Based on Roles

12.Master Pages and NaVigation

Master Pages

Adding Content Pages

Using Nested Master Pages

Dynamically Editing the Master

Navigation

Getting Started with Site Navigation

Setting Up the Pages

Customizing the L00k and Feel

Populating on Demand

Using a Menu for Navigation

Enumerate Site Map Nodes Programatically

Filtering Based on Security

Enable Membership

Adding R01es

Add aLogin Page

Create Access Rules

Crearing a Permission-Driyen Site Map

13.PersonaIlzation

Crearing Personalized Web Sites

Recording Personalization Information

Setting Up Profile Handling

Exploring the Profile Tables

Personalizing With Complex Types

Anonymous Personalization

Themes and Skins

Create the Test Site

organize Site Themes and Skins

EFlable Themes and Skins

specify Themes for Your Page

Setting Stylesheet Themes

Setting Customization Themes

Using Named Skins

Web Parts

Web Parts Architecture

Creating Zones

Adding Controls to Zones

Minim1。zlng and Restoring

Enabhng Editing and Layout Changes

Creating a User Control to Enable Changing Page Layout

Adding Parts fiom a Catalog

14.Custom and U$er Contols

User Controls

User Controls with Code

@Control Directive

Properties

Handling Events

Custom Controls

Properties

The Render Method

Updating the Control

Maintaining State

Creating Derived Controls

Creating CompOSite Controls

15.Creating Web SerVices

HOW Web Services Work

Developing a Web Service

The Proxy

Creatlng the Consumer

Protocols and Standards

HTTP

XML

SOAP

Web Seivices Enhancements(WSE)

Creatlng a Simple Web Service

In-Line with a Text Editor

Code-Behind with Visual Studio 2005

WebServlce Dlrectlve

Derivlng from the WebService Class

Application State via HttpContext

WebServiceBinding Attrlbute

WebMethod Attrlbute

The BufferResponse Property

CacheDuration PropertV

Description Property

EnableSession Property

MessageName Property

Transactionoption Property

WebService Attribute

Description Property

Name Property

Namespace Property

Data Types

Arrays

ClaSSeS and Structs

DataSets

StOCkTickerComplete

Creating Discovery Documents

DiSCOVery via Query Strlng

Static Discovery Files

Deployment

Pre-Compiled Assemblies

Dynamically Compiled Assemblies

16.ConsumingWeb Services

DiSCOVery

Creating the C1ient with VS2005

Creatlng the Client Manually

Creatlng the Consumer Web Page Content

Creating the ProXy

Compihng the Proxy Class

FiniShing the Consumer App

Using Asynchronous Method Calls

17.Caching and Performance

Types of Caching

Class Caching

Configuration Caching

Data Caching

output Caching

object caching

Data Caching

DataSourceControl Caching

SQL Cache Dependency

output Caching

The outputCache Directive

Fragment Caching:Caching Part of a Page

object caching

Cache Class Functionalitv

Dependencies

Scavenging

Callback Support

The HttpCachePolicy Class

PerfOrmance

ASP.NET-Specic Issues

General.NET Issues

Database Issues

Benchmarking and Profiling

18.Application Logic and Configuration

Internet Information Server(IIS)

IIS Verslons

Virtual Dlrectories

Understanding Web Applications

Application-Wide Logic

HttpAppliCation o bject

global.asax

Global Members

Configuring the Application

Hierarchical Configuration

Fnrmaf

Configuration Settings UI

Web Site Administration Tool

Other Configuration Settings

Custom Configuration Sections

19. Deployment

Assemblies

Microsoft Intermediate Language (MSIL)

ILDASM

Manifests

Versioning

Private Versus Shared Assemblies

Strong Names

Local Deployment

Full Runtime Compilation

Manual Compilation of Assemblies

Full Pre-Compilation

Pre-Compilation of Code Only

Global Deployment

Windows Installer

Build Configurations

Adding a Setup Proiect with the Setup Wizard

Adding a Setup Project Manually

Further Customizations

Deploying the Web Site

A. Keyboard Shortcuts

B. Relational Database Technology: A Crash Course

Index