Search and Find
Service
Contents at a Glance
5
Contents
7
About the Authors
30
About the Technical Reviewer
31
Introduction
32
What Does This Book Cover?
32
Who Is This Book For?
33
What Do You Need to Use This Book?
34
Customer Support
35
Core Concepts
36
Introducing ASP.NET
37
The Evolution of Web Development
37
Seven Important Facts About ASP.NET
41
ASP.NET 3.5: The Story Continues
50
Summary
57
Visual Studio
58
The .NET Development Model
59
The Visual Studio IDE
73
The Code Editor
79
The Code Model
85
Web Projects
92
Visual Studio Debugging
98
Visual Studio Macros
104
The Web Development Helper
107
Summary
109
Web Forms
110
Page Processing
110
Web Forms Processing Stages
127
The Page As a Control Container
133
The Page Class
140
Summary
156
Server Controls
157
Types of Server Controls
157
HTML Server Controls
160
Web Controls
170
The List Controls
184
Input Validation Controls
190
Rich Controls
205
Summary
210
ASP.NET Applications
211
Anatomy of an ASP.NET Application
211
The global.asax Application File
215
ASP.NET Configuration
221
.NET Components
244
Extending the HTTP Pipeline
251
Summary
265
State Management
266
ASP.NET State Management
266
View State
269
Transferring Information Between Pages
278
Cookies
287
Session State
289
Application State
300
Summary
304
Data Access
305
ADO.NET Fundamentals
306
The ADO.NET Architecture
307
The Connection Class
313
The Command and DataReader Classes
319
Transactions
336
Provider-Agnostic Code
345
Summary
349
Data Components and the DataSet
350
Building a Data Access Component
350
Disconnected Data
362
The DataSet
365
The DataAdapter Class
366
The DataView Class
375
Typed DataSets
383
Summary
391
Data Binding
392
Basic Data Binding
393
Data Source Controls
408
The SqlDataSource
410
The ObjectDataSource
427
The Limits of the Data Source Controls
439
Summary
442
Rich Data Controls
443
444
449
456
461
466
473
487
493
500
518
Caching and Asynchronous Pages
519
Understanding ASP.NET Caching
519
Output Caching
520
Data Caching
531
Cache Dependencies
539
Custom Cache Dependencies
553
Asynchronous Pages
557
Summary
569
Files and Streams
570
Working with the File System
570
Reading and Writing Files with Streams
588
Serialization
600
Summary
604
LINQ
605
LINQ Basics
606
LINQ to DataSet
619
LINQ to SQL
623
The LinqDataSource
664
Summary
672
XML
673
When Does Using XML Make Sense?
673
An Introduction to XML
674
Stream-Based XML Processing
680
In-Memory XML Processing
689
Searching XML Content
703
Validating XML Content
710
Transforming XML Content
713
XML Data Binding
719
XML and the ADO.NET DataSet
731
Summary
736
Building ASP.NET Websites
738
User Controls
739
User Control Basics
740
Adding Code to a User Control
743
Dynamically Loading User Controls
754
Partial Page Caching
758
Summary
761
Themes and Master Pages
762
Cascading Style Sheets
762
Themes
768
Standardizing Website Layout
779
Master Page Basics
780
Advanced Master Pages
790
Summary
794
Website Navigation
795
Pages with Multiple Views
795
Site Maps
810
The TreeView Control
833
The Menu Control
843
Summary
849
Website Deployment
850
Internet Information Services (IIS)
850
Managing Websites
881
Deploying Your ASP.NET Applications
913
The VirtualPathProvider in ASP.NET
932
Health Monitoring in ASP.NET
937
Summary
942
Security
944
The ASP.NET Security Model
945
What It Means to Create Secure Software
945
Understanding the Levels of Security
949
Internet Information Services Security
954
ASP.NET Security Architecture
975
Summary
982
Forms Authentication
983
Introducing Forms Authentication
983
Implementing Forms Authentication
989
IIS 7.0 and Forms Authentication
1003
Summary
1009
Membership
1010
Introducing the ASP.NET Membership API
1010
Using the Membership API
1013
Using the Security Controls
1028
Configuring Membership in IIS 7.0
1054
Using the Membership Class
1059
Summary
1067
Windows Authentication
1068
Introducing Windows Authentication
1068
Implementing Windows Authentication
1079
Impersonation
1094
Summary
1107
Authorization and Roles
1108
URL Authorization
1108
File Authorization
1115
Authorization Checks in Code
1116
Using the Roles API for Role-Based Authorization
1119
Protecting Non-ASP.NET Resources in IIS 5 and 6
1132
Authorization and Roles in IIS 7.0
1137
Summary
1144
Profiles
1145
Understanding Profiles
1145
Using the SqlProfileProvider
1149
Custom Profile Providers
1167
Summary
1179
Cryptography
1180
Encrypting Data: Confidentiality Matters
1180
The .NET Cryptography Namespace
1181
Understanding the .NET Cryptography Classes
1185
Encrypting Sensitive Data
1191
Encrypting the Query String
1206
Summary
1211
Custom Membership Providers
1212
Architecture of Custom Providers
1213
Basic Steps for Creating Custom Providers
1214
Summary
1249
Advanced User Interface
1251
Custom Server Controls
1253
Custom Server Control Basics
1253
Dealing with Different Browsers
1265
Control State and Events
1273
Extending Existing Web Controls
1282
Template Controls
1289
Summary
1300
Design-Time Support
1301
The Key Players
1301
Design-Time Attributes
1302
Web Resources
1310
Code Serialization
1313
Control Designers
1327
Summary
1336
Dynamic Graphics and GDI+
1337
The ImageMap Control
1337
Drawing with GDI+
1343
Embedding Dynamic Graphics in a Web Page
1356
Charting with GDI+
1367
Summary
1372
Portals with Web Part Pages
1373
Typical Portal Pages
1374
Basic Web Part Pages
1376
Creating Web Parts
1387
Summary
1434
Client-Side Programming
1435
JavaScript and Ajax Techniques
1436
JavaScript Essentials
1436
Basic JavaScript Examples
1446
Script Injection Attacks
1457
Custom Controls with JavaScript
1460
Frames
1469
Understanding Ajax
1473
Using Ajax with Client Callbacks
1481
Summary
1493
ASP.NET AJAX
1494
Introducing ASP.NET AJAX
1494
Server Callbacks
1498
ASP.NET AJAX Server Controls
1517
Deeper into the Client Libraries
1530
Control Extenders
1546
Summary
1555
Silverlight 2
1556
Understanding Silverlight
1556
Creating a Silverlight Solution
1562
Creating a Silverlight Project
1571
Layout
1582
Animation
1593
Silverlight and ASP.NET
1606
Summary
1617
Index
1618
All prices incl. VAT