Search and Find
Service
Contents at a Glance
4
Contents
6
About the Authors
29
About the Technical Reviewer
30
Introduction
31
What Does This Book Cover?
31
Who Is This Book For?
32
What Do You Need to Use This Book?
33
Customer Support
33
Core Concepts
35
Before
35
Introducing ASP.NET W
36
The Evolution of Web Development
36
Seven Important Facts About ASP.NET
37
ASP.NET: The Story Continues
46
Summary
53
Visual Studio W
54
The .NET Development Model
55
The Visual Studio IDE
67
The Code Editor
73
The Code Model
79
Web Projects
86
Visual Studio Debugging
90
Visual Studio Macros
96
The Web Development Helper
98
Summary
100
Web Forms A
101
Page Processing
101
Web Forms Processing Stages
116
The Page As a Control Container
122
The Page Class
129
Summary
144
Server Controls A
145
Types of Server Controls
145
HTML Server Controls
148
Web Controls
157
The List Controls
170
Input Validation Controls
176
Rich Controls
190
Summary
195
ASP.NET Applications I
196
Anatomy of an ASP.NET Application
196
The global.asax Application File
200
ASP.NET Configuration
205
.NET Components
227
Extending the HTTP Pipeline
232
Summary
247
State Management N
248
ASP.NET State Management
248
View State
251
Transferring Information Between Pages
260
Cookies
269
Session State
270
Application State
280
Summary
284
Data Access
285
The
285
ADO.NET Fundamentals A
286
The ADO.NET Architecture
287
The Connection Class
291
The Command and DataReader Classes
297
Transactions
312
Provider-Agnostic Code
320
Summary
323
Data Components and the DataSet I
324
Building a Data Access Component
324
Disconnected Data
336
The DataSet
338
The DataAdapter Class
340
The DataView Class
348
Typed DataSets
355
Summary
364
Data Binding A
365
Basic Data Binding
365
Data Source Controls
379
The SqlDataSource
381
The ObjectDataSource
395
The Limits of the Data Source Controls
405
Summary
408
Rich Data Controls I
409
The GridView
410
Formatting the GridView
414
GridView Row Selection
421
Sorting the GridView
425
Paging the GridView
430
GridView Templates
436
The ListView
447
The DetailsView and FormView
453
Advanced Grids
457
Summary
474
Caching and Asynchronous Pages C
475
Understanding ASP.NET Caching
475
Output Caching
476
Data Caching
485
Cache Dependencies
493
Custom Cache Dependencies
505
Asynchronous Pages
509
Summary
520
Files and Streams M
521
Working with the File System
521
Reading and Writing Files with Streams
538
Serialization
550
Summary
553
LINQ O
554
LINQ Basics
554
LINQ to DataSet
567
LINQ to SQL
570
The LinqDataSource
601
Summary
609
XML E
610
When Does Using XML Make Sense?
610
An Introduction to XML
611
Stream-Based XML Processing
617
In-Memory XML Processing
623
Searching XML Content
635
Validating XML Content
642
Transforming XML Content
645
XML Data Binding
650
XML and the ADO.NET DataSet
661
Summary
665
Building ASP.NET Websites
666
Once
666
User Controls T
667
User Control Basics
667
Adding Code to a User Control
670
Dynamically Loading User Controls
679
Partial Page Caching
683
Summary
685
Themes and Master Pages B
687
Cascading Style Sheets
687
Themes
692
Standardizing Website Layout
702
Master Page Basics
702
Advanced Master Pages
711
Summary
715
Website Navigation N
716
Pages with Multiple Views
716
Site Maps
728
The TreeView Control
749
The Menu Control
758
Summary
764
Website Deployment D
765
Internet Information Services (IIS)
765
Managing Websites
791
Deploying Your ASP.NET Applications
818
The VirtualPathProvider in ASP.NET
835
Health Monitoring in ASP.NET
839
Summary
843
Security
845
Devising
845
The ASP.NET Security Model S
846
What It Means to Create Secure Software
846
Understanding the Levels of Security
849
Internet Information Services Security
854
ASP.NET Security Architecture
871
Summary
877
Forms Authentication I
878
Introducing Forms Authentication
878
Implementing Forms Authentication
884
IIS 7.0 and Forms Authentication
897
Summary
903
Membership O
904
Introducing the ASP.NET Membership API
904
Using the Membership API
907
Using the Security Controls
921
Configuring Membership in IIS 7.0
945
Using the Membership Class
949
Summary
956
Windows Authentication F
957
Introducing Windows Authentication
957
Implementing Windows Authentication
966
Impersonation
980
Summary
991
Authorization and Roles S
992
URL Authorization
992
File Authorization
998
Authorization Checks in Code
999
Using the Roles API for Role-Based Authorization
1002
Protecting Non-ASP.NET Resources in IIS 5 and 6
1014
Authorization and Roles in IIS 7.0
1017
Summary
1023
Profiles I
1025
Understanding Profiles
1025
Using the SqlProfileProvider
1028
Custom Profile Providers
1045
Summary
1056
Cryptography I
1057
Encrypting Data: Confidentiality Matters
1057
The .NET Cryptography Namespace
1058
Understanding the .NET Cryptography Classes
1062
Encrypting Sensitive Data
1067
Encrypting the Query String
1081
Summary
1086
Custom Membership Providers I
1087
Architecture of Custom Providers
1087
Basic Steps for Creating Custom Providers
1089
Summary
1122
Advanced User Interface
1123
As
1123
Custom Server Controls E
1124
Custom Server Control Basics
1124
Dealing with Different Browsers
1134
Control State and Events
1142
Extending Existing Web Controls
1150
Template Controls
1156
Summary
1165
Design-Time Support C
1166
The Key Players
1166
Design-Time Attributes
1167
Web Resources
1174
Code Serialization
1177
Control Designers
1189
Summary
1197
Dynamic Graphics and GDI+ I
1198
The ImageMap Control
1198
Drawing with GDI+
1203
Embedding Dynamic Graphics in a Web Page
1214
Charting with GDI+
1223
Summary
1228
Portals with Web Part Pages W
1229
Typical Portal Pages
1230
Basic Web Part Pages
1231
Creating Web Parts
1240
Summary
1283
Client-Side Programming
1284
JavaScript and Ajax Techniques A
1285
JavaScript Essentials
1285
Basic JavaScript Examples
1294
Script Injection Attacks
1303
Custom Controls with JavaScript
1306
Frames
1313
Understanding Ajax
1316
Using Ajax with Client Callbacks
1323
Summary
1334
ASP.NET AJAX I
1335
Introducing ASP.NET AJAX
1335
Server Callbacks
1338
ASP.NET AJAX Server Controls
1355
Deeper into the Client Libraries
1372
Control Extenders
1387
Summary
1397
Silverlight 2 A
1398
Understanding Silverlight
1399
Creating a Silverlight Solution
1404
Creating a Silverlight Project
1411
Layout
1422
Animation
1432
Silverlight and ASP.NET
1444
Summary
1454
Index
1455
All prices incl. VAT