上卷 1
1. Web Development in 2008 1
AJAX 1
.NET Framework 3.0 and 3.5 2
Visual Studio 2008 5
Internet Information Services 7.0 6
Beyond 2008 6
On to VS2008 8
2. Visual Studio 2008 9
First Sight: The Start Page 11
Creating Your First Web Page 12
Projects and Solutions 19
The Integrated Development Environment 24
3. Controls: Fundamental Concepts 66
Events 69
ASP.NET Server Controls 78
AJAX Server Controls 94
HTML Server Controls 99
Client-Side Processing 104
4. Basic Controls 108
Visual Studio Is Not Mandatory 109
Web Forms: Plain or AJAX? 114
Label Controls and Literal Controls 115
TextBox Control 117
HiddenField Control 127
Button Controls 130
HyperLink Control 137
Images 139
Selecting Values 148
5. More Controls 198
Panel Controls 198
The UpdatePanel Control 225
MultiView and View Controls 236
The Wizard Control 245
The FileUpload Control 260
The AdRotator Control 267
The Calendar Control 273
6. Website Fundamentals 296
The Page Class 296
The Code-Behind File 298
Moving to Another Page 303
State 317
Life Cycle 337
Directives 340
7. Data Source Controls and Connections 346
Sources of Data and DataSource Controls 346
Using the ObjectDataSource Control 349
Using the XmlDataSource Control 353
Using the SqlDataSource Control 357
Tracking the Data Source with Events 384
8. Using Data-Aware Controls 387
Hierarchical Data Controls 388
Tabular Data Controls 389
Lists of Data 390
One Record at a Time: DetailsView 396
Many Records at a Time: GridView 420
Templated Controls 434
9. ADO.NET 462
The ADO.NET Object Model 462
Getting Started with ADO.NET 469
Creating Data Objects by Hand 481
Stored Procedures 492
Updating with SQL and ADO.NET 499
Updating Data with Transactions 506
Binding to Business Objects 521
10. Presenting LINQ 527
Deconstructing LINQ 528
LINQ Providers 551
LINQ to XML 552
LINQ to SQL 562