About the Author |
|
xxvii | |
About the Editor |
|
xxix | |
About the Technical Reviewer |
|
xxxi | |
Introduction |
|
xxxiii | |
|
|
|
|
3 | (20) |
|
The Evolution of Web Development |
|
|
3 | (4) |
|
The Development World Before ASP.NET |
|
|
4 | (1) |
|
What's Wrong with Classic ASP? |
|
|
4 | (2) |
|
|
6 | (1) |
|
Seven Important Facts About ASP.NET |
|
|
7 | (8) |
|
Fact 1: ASP.NET Is Integrated with the .NET Framework |
|
|
7 | (1) |
|
Fact 2: ASP.NET Is Compiled, Not Interpreted |
|
|
7 | (2) |
|
Fact 3: ASP.NET Is Multilanguage |
|
|
9 | (2) |
|
Fact 4: ASP.NET Runs Inside the Common Language Runtime |
|
|
11 | (1) |
|
Fact 5: ASP.NET Is Object-Oriented |
|
|
12 | (2) |
|
Fact 6: ASP.NET Is Multidevice and Multibrowser |
|
|
14 | (1) |
|
Fact 7: ASP.NET Is Easy to Deploy and Configure |
|
|
14 | (1) |
|
ASP.NET 2.0: The Story Continues |
|
|
15 | (6) |
|
|
15 | (1) |
|
|
16 | (1) |
|
|
16 | (5) |
|
|
21 | (2) |
|
|
23 | (40) |
|
The .NET Development Model |
|
|
24 | (2) |
|
|
25 | (1) |
|
The Visual Studio 2005 IDE |
|
|
25 | (1) |
|
Websites in Visual Studio |
|
|
26 | (9) |
|
|
29 | (1) |
|
Migrating a Visual Studio .NET Project |
|
|
30 | (1) |
|
|
31 | (4) |
|
|
35 | (6) |
|
|
36 | (1) |
|
|
37 | (1) |
|
|
37 | (1) |
|
|
38 | (2) |
|
|
40 | (1) |
|
|
41 | (6) |
|
Adding Assembly References |
|
|
42 | (2) |
|
IntelliSense and Outlining |
|
|
44 | (3) |
|
|
47 | (5) |
|
How Code-Behind Files Are Connected to Pages |
|
|
50 | (1) |
|
How Control Tags Are Connected to Page Variables |
|
|
50 | (1) |
|
How Events Are Connected to Event Handlers |
|
|
51 | (1) |
|
|
52 | (6) |
|
|
53 | (3) |
|
|
56 | (1) |
|
|
57 | (1) |
|
|
58 | (2) |
|
ASP.NET Development Helper |
|
|
60 | (2) |
|
|
62 | (1) |
|
|
63 | (40) |
|
|
64 | (12) |
|
|
64 | (2) |
|
|
66 | (1) |
|
|
66 | (1) |
|
|
67 | (2) |
|
|
69 | (3) |
|
|
72 | (4) |
|
Web Forms Processing Stages |
|
|
76 | (6) |
|
Page Framework Initialization |
|
|
77 | (1) |
|
|
77 | (1) |
|
|
78 | (1) |
|
|
78 | (1) |
|
|
79 | (1) |
|
|
79 | (1) |
|
|
80 | (2) |
|
The Page As a Control Container |
|
|
82 | (6) |
|
|
82 | (4) |
|
|
86 | (1) |
|
|
87 | (1) |
|
|
88 | (13) |
|
Session, Application, and Cache |
|
|
89 | (1) |
|
|
89 | (2) |
|
|
91 | (1) |
|
|
92 | (2) |
|
|
94 | (1) |
|
|
94 | (7) |
|
Accessing the HTTP Context in Another Class |
|
|
101 | (1) |
|
|
101 | (2) |
|
|
103 | (48) |
|
|
104 | (2) |
|
The Server Control Hierarchy |
|
|
105 | (1) |
|
|
106 | (10) |
|
|
107 | (1) |
|
The HtmlContainerControl Class |
|
|
108 | (1) |
|
The HtmlInputControl Class |
|
|
108 | (1) |
|
The HTML Server Control Classes |
|
|
108 | (2) |
|
Setting Style Attributes and Other Properties |
|
|
110 | (1) |
|
Programmatically Creating Server Controls |
|
|
111 | (2) |
|
Handling Server-Side Events |
|
|
113 | (3) |
|
|
116 | (11) |
|
The WebControl Base Class |
|
|
117 | (1) |
|
Basic Web Control Classes |
|
|
117 | (2) |
|
|
119 | (1) |
|
|
120 | (1) |
|
|
120 | (1) |
|
|
121 | (1) |
|
|
122 | (1) |
|
|
123 | (1) |
|
|
123 | (1) |
|
Handling Web Control Events |
|
|
124 | (3) |
|
|
127 | (5) |
|
The Selectable List Controls |
|
|
128 | (2) |
|
|
130 | (2) |
|
Input Validation Controls |
|
|
132 | (12) |
|
|
132 | (1) |
|
|
133 | (2) |
|
|
135 | (1) |
|
The RequiredFieldValidator Control |
|
|
135 | (1) |
|
The RangeValidator Control |
|
|
136 | (1) |
|
The CompareValidator Control |
|
|
136 | (1) |
|
The RegularExpressionValidator Control |
|
|
137 | (3) |
|
The CustomValidator Control |
|
|
140 | (1) |
|
The ValidationSummary Control |
|
|
141 | (1) |
|
Using the Validators Programmatically |
|
|
142 | (1) |
|
|
143 | (1) |
|
The ASP.NET Rich Controls |
|
|
144 | (5) |
|
|
145 | (2) |
|
|
147 | (2) |
|
|
149 | (2) |
|
|
151 | (44) |
|
Anatomy of an ASP.NET Application |
|
|
151 | (4) |
|
|
152 | (1) |
|
|
153 | (1) |
|
|
154 | (1) |
|
Application Directory Structure |
|
|
154 | (1) |
|
The Global.asax Application File |
|
|
155 | (4) |
|
|
156 | (2) |
|
Demonstrating Application Events |
|
|
158 | (1) |
|
|
159 | (18) |
|
|
160 | (2) |
|
|
162 | (3) |
|
|
165 | (4) |
|
Reading and Writing Configuration Sections Programmatically |
|
|
169 | (2) |
|
The Website Administration Tool (WAT) |
|
|
171 | (2) |
|
Extending the Configuration File Structure |
|
|
173 | (3) |
|
Encrypting Configuration Sections |
|
|
176 | (1) |
|
|
177 | (5) |
|
|
178 | (1) |
|
Using a Component Through the App_Code Directory |
|
|
179 | (1) |
|
Using a Component Through the Bin Directory |
|
|
180 | (2) |
|
Extending the HTTP Pipeline |
|
|
182 | (11) |
|
HTTP Handlers and HTTP Modules |
|
|
183 | (2) |
|
Creating a Custom HTTP Handler |
|
|
185 | (1) |
|
Configuring a Custom HTTP Handler |
|
|
186 | (1) |
|
Registering HTTP Handlers Without Configuring IIS |
|
|
187 | (1) |
|
Creating an Advanced HTTP Handler |
|
|
188 | (3) |
|
Creating a Custom HTTP Module |
|
|
191 | (2) |
|
|
193 | (2) |
|
|
195 | (34) |
|
|
196 | (2) |
|
|
198 | (9) |
|
|
198 | (2) |
|
Storing Objects in View State |
|
|
200 | (2) |
|
Retaining Member Variables |
|
|
202 | (1) |
|
|
203 | (2) |
|
Trimming View State in a List Control |
|
|
205 | (1) |
|
|
205 | (2) |
|
|
207 | (5) |
|
|
207 | (1) |
|
|
208 | (3) |
|
Cross-Page Posting and Validation |
|
|
211 | (1) |
|
|
212 | (2) |
|
|
214 | (8) |
|
|
214 | (1) |
|
|
215 | (2) |
|
Configuring Session State |
|
|
217 | (5) |
|
|
222 | (1) |
|
|
222 | (4) |
|
Shared Application Variables |
|
|
224 | (2) |
|
|
226 | (3) |
|
|
|
|
229 | (36) |
|
|
230 | (5) |
|
|
230 | (2) |
|
Standardization in ADO.NET |
|
|
232 | (1) |
|
|
233 | (1) |
|
Fundamental ADO.NET Classes |
|
|
234 | (1) |
|
|
235 | (5) |
|
|
235 | (1) |
|
|
236 | (2) |
|
|
238 | (2) |
|
|
240 | (1) |
|
The Command and DataReader Classes |
|
|
240 | (13) |
|
|
240 | (2) |
|
|
242 | (1) |
|
The ExecuteReader() Method and the DataReader |
|
|
242 | (5) |
|
The ExecuteScalar() Method |
|
|
247 | (1) |
|
The ExecuteNonQuery() Method |
|
|
247 | (1) |
|
|
248 | (2) |
|
Using Parameterized Commands |
|
|
250 | (1) |
|
Calling Stored Procedures |
|
|
251 | (2) |
|
|
253 | (6) |
|
Transactions and ASP.NET Applications |
|
|
254 | (3) |
|
|
257 | (2) |
|
|
259 | (1) |
|
|
259 | (1) |
|
|
259 | (4) |
|
|
260 | (1) |
|
Create Objects with Factory |
|
|
261 | (1) |
|
A Query with Provider-Agnostic Code |
|
|
262 | (1) |
|
|
263 | (2) |
|
Data Components and the DataSet |
|
|
265 | (30) |
|
Building a Data Access Component |
|
|
265 | (10) |
|
|
267 | (1) |
|
|
268 | (1) |
|
|
269 | (5) |
|
|
274 | (1) |
|
|
275 | (2) |
|
Web Applications and the DataSet |
|
|
276 | (1) |
|
|
277 | (1) |
|
|
277 | (2) |
|
|
279 | (1) |
|
|
279 | (1) |
|
|
279 | (8) |
|
|
281 | (1) |
|
Working with Multiple Tables and Relationships |
|
|
282 | (3) |
|
Searching for Specific Rows |
|
|
285 | (1) |
|
Using the DataSet in a Custom Data Class |
|
|
286 | (1) |
|
|
286 | (1) |
|
|
287 | (7) |
|
|
287 | (2) |
|
Filtering with a DataView |
|
|
289 | (2) |
|
Advanced Filtering with Relationships |
|
|
291 | (1) |
|
|
292 | (2) |
|
|
294 | (1) |
|
|
295 | (40) |
|
|
296 | (13) |
|
|
296 | (2) |
|
Other Types of Expressions |
|
|
298 | (4) |
|
|
302 | (7) |
|
|
309 | (2) |
|
The Page Life Cycle with Data Binding |
|
|
310 | (1) |
|
|
311 | (12) |
|
|
312 | (2) |
|
|
314 | (4) |
|
|
318 | (1) |
|
|
318 | (4) |
|
Disadvantages of the SqlDataSource |
|
|
322 | (1) |
|
|
323 | (8) |
|
|
324 | (4) |
|
|
328 | (1) |
|
Updating with a Data Object |
|
|
329 | (2) |
|
The Limits of the Data Source Controls |
|
|
331 | (3) |
|
|
332 | (1) |
|
|
333 | (1) |
|
Handling the Extra Options with the SqlDataSource |
|
|
333 | (1) |
|
Handling the Extra Options with the ObjectDataSource |
|
|
334 | (1) |
|
|
334 | (1) |
|
|
335 | (56) |
|
|
336 | (3) |
|
|
336 | (3) |
|
|
339 | (7) |
|
|
340 | (1) |
|
|
341 | (3) |
|
Formatting-Specific Values |
|
|
344 | (2) |
|
|
346 | (4) |
|
Using Selection to Create a Master-Details Form |
|
|
347 | (2) |
|
The SelectedIndexChanged Event |
|
|
349 | (1) |
|
Using a Data Field As a Select Button |
|
|
350 | (1) |
|
|
350 | (5) |
|
Sorting with the SqlDataSource |
|
|
351 | (1) |
|
Sorting with the ObjectDataSource |
|
|
352 | (1) |
|
|
353 | (1) |
|
|
354 | (1) |
|
|
355 | (6) |
|
|
356 | (1) |
|
Custom Pagination with the ObjectDataSource |
|
|
357 | (3) |
|
Customizing the Pager Bar |
|
|
360 | (1) |
|
|
361 | (11) |
|
|
363 | (1) |
|
Editing Templates in Visual Studio |
|
|
364 | (1) |
|
|
364 | (2) |
|
Handling Events in a Template |
|
|
366 | (1) |
|
|
367 | (5) |
|
The DetailsView and FormView |
|
|
372 | (4) |
|
|
372 | (3) |
|
|
375 | (1) |
|
|
376 | (13) |
|
Summaries in the GridView |
|
|
376 | (2) |
|
A Parent/Child View in a Single Table |
|
|
378 | (2) |
|
Serving Images from a Database |
|
|
380 | (5) |
|
Detecting Concurrency Conflicts |
|
|
385 | (4) |
|
|
389 | (2) |
|
|
391 | (34) |
|
Understanding ASP.NET Caching |
|
|
392 | (1) |
|
|
393 | (8) |
|
Declarative Output Caching |
|
|
393 | (1) |
|
Caching and the Query String |
|
|
394 | (1) |
|
Caching with Specific Query String Parameters |
|
|
395 | (1) |
|
|
396 | (1) |
|
Caching with the HttpCachePolicy Class |
|
|
397 | (1) |
|
Post-Cache Substitution and Fragment Caching |
|
|
398 | (2) |
|
|
400 | (1) |
|
|
401 | (1) |
|
|
401 | (8) |
|
Adding Items to the Cache |
|
|
402 | (2) |
|
|
404 | (1) |
|
|
405 | (1) |
|
Caching with the Data Source Controls |
|
|
406 | (3) |
|
|
409 | (11) |
|
File and Cache Item Dependencies |
|
|
409 | (2) |
|
|
411 | (1) |
|
The Item Removed Callback |
|
|
411 | (2) |
|
Understanding SQL Cache Notifications |
|
|
413 | (2) |
|
Cache Notifications in SQL Server 2000 or SQL Server 7 |
|
|
415 | (4) |
|
Cache Notifications in SQL Server 2005 |
|
|
419 | (1) |
|
Custom Cache Dependencies |
|
|
420 | (4) |
|
A Basic Custom Cache Dependency |
|
|
421 | (1) |
|
A Custom Cache Dependency Using Message Queues |
|
|
422 | (2) |
|
|
424 | (1) |
|
|
425 | (44) |
|
When Does Using XML Make Sense? |
|
|
426 | (1) |
|
|
426 | (5) |
|
|
427 | (1) |
|
|
428 | (1) |
|
|
428 | (2) |
|
|
430 | (1) |
|
Writing and Reading XML Programmatically |
|
|
431 | (17) |
|
|
431 | (3) |
|
|
434 | (6) |
|
Searching an XML Document |
|
|
440 | (6) |
|
|
446 | (2) |
|
Displaying XML Content with XSL |
|
|
448 | (3) |
|
|
449 | (1) |
|
Using XslCompiledTransform |
|
|
450 | (1) |
|
|
451 | (1) |
|
|
451 | (11) |
|
|
451 | (2) |
|
Using XPath Binding Expressions |
|
|
453 | (2) |
|
|
455 | (2) |
|
Hierarchical Binding with the TreeView |
|
|
457 | (3) |
|
Using XSLT to Prepare Data for Binding in a TreeView |
|
|
460 | (1) |
|
Binding to XML Content from Other Sources |
|
|
461 | (1) |
|
Updating XML Through the XmlDataSource |
|
|
462 | (1) |
|
|
462 | (6) |
|
Converting the DataSet to XML |
|
|
463 | (1) |
|
Accessing a DataSet As XML |
|
|
464 | (2) |
|
|
466 | (2) |
|
|
468 | (1) |
|
|
469 | (32) |
|
Working with the File System |
|
|
469 | (16) |
|
The Directory and File Classes |
|
|
470 | (2) |
|
The DirectoryInfo and FileInfo Classes |
|
|
472 | (2) |
|
|
474 | (1) |
|
|
475 | (2) |
|
Filter Files with Wildcards |
|
|
477 | (1) |
|
Retrieving File Version Information |
|
|
477 | (1) |
|
|
478 | (2) |
|
|
480 | (5) |
|
Reading and Writing Files with Streams |
|
|
485 | (10) |
|
|
486 | (2) |
|
|
488 | (1) |
|
|
489 | (1) |
|
Making Files Safe for Multiple Users |
|
|
490 | (4) |
|
|
494 | (1) |
|
|
495 | (3) |
|
|
498 | (3) |
|
PART 3 Building ASP.NET Websites |
|
|
|
|
501 | (22) |
|
|
502 | (2) |
|
Creating a Simple User Control |
|
|
502 | (2) |
|
Converting a Page to a User Control |
|
|
504 | (1) |
|
Adding Code to a User Control |
|
|
504 | (10) |
|
|
504 | (2) |
|
|
506 | (2) |
|
|
508 | (2) |
|
|
510 | (3) |
|
Exposing the Inner Web Control |
|
|
513 | (1) |
|
Dynamically Loading User Controls |
|
|
514 | (4) |
|
|
515 | (3) |
|
|
518 | (3) |
|
|
519 | (1) |
|
|
520 | (1) |
|
|
521 | (2) |
|
|
523 | (30) |
|
Standardizing Website Formatting |
|
|
523 | (3) |
|
|
523 | (3) |
|
|
526 | (10) |
|
|
527 | (1) |
|
|
528 | (1) |
|
|
529 | (1) |
|
Creating Multiple Skins for the Same Control |
|
|
530 | (1) |
|
Skins with Templates and Images |
|
|
531 | (2) |
|
|
533 | (1) |
|
Applying Themes Through a Configuration File |
|
|
534 | (1) |
|
Applying Themes Dynamically |
|
|
535 | (1) |
|
Standardizing Website Layout |
|
|
536 | (1) |
|
|
537 | (10) |
|
|
537 | (2) |
|
|
539 | (2) |
|
Design-Time Quirks with Master Pages |
|
|
541 | (2) |
|
|
543 | (1) |
|
A More Practical Master Page |
|
|
544 | (1) |
|
Master Pages and Relative Paths |
|
|
545 | (1) |
|
Master Pages and Formatting |
|
|
546 | (1) |
|
Applying Master Pages Through a Configuration File |
|
|
547 | (1) |
|
|
547 | (5) |
|
Specifying a Title and Metatags for a Content Page |
|
|
547 | (1) |
|
Interacting with the Master Page Class |
|
|
548 | (2) |
|
Dynamically Setting a Master Page |
|
|
550 | (1) |
|
|
550 | (2) |
|
|
552 | (1) |
|
|
553 | (46) |
|
Pages with Multiple Views |
|
|
553 | (12) |
|
|
554 | (4) |
|
|
558 | (7) |
|
|
565 | (17) |
|
|
566 | (1) |
|
|
567 | (2) |
|
|
569 | (2) |
|
Binding Portions of a SiteMap |
|
|
571 | (3) |
|
|
574 | (1) |
|
|
575 | (1) |
|
Adding Custom Site Map Information |
|
|
576 | (1) |
|
Creating a Custom SiteMapProvider |
|
|
577 | (4) |
|
|
581 | (1) |
|
|
582 | (9) |
|
|
583 | (2) |
|
Populating Nodes on Demand |
|
|
585 | (2) |
|
|
587 | (4) |
|
|
591 | (6) |
|
|
594 | (1) |
|
|
595 | (2) |
|
|
597 | (2) |
|
Resources and Localization |
|
|
599 | (20) |
|
Resources in .NET Applications |
|
|
599 | (8) |
|
Localization of Web Applications |
|
|
607 | (11) |
|
Localization and the Common Language Runtime |
|
|
607 | (3) |
|
Local Resources for a Single Page |
|
|
610 | (5) |
|
Sharing Resources Between Pages |
|
|
615 | (2) |
|
|
617 | (1) |
|
|
617 | (1) |
|
|
618 | (1) |
|
|
619 | (50) |
|
Internet Information Services (IIS) |
|
|
619 | (16) |
|
|
620 | (2) |
|
Request Processing with IIS and ASP.NET |
|
|
622 | (1) |
|
|
623 | (4) |
|
|
627 | (5) |
|
|
632 | (3) |
|
|
635 | (7) |
|
Creating a Virtual Directory |
|
|
636 | (2) |
|
Virtual Directories and Web Applications |
|
|
638 | (1) |
|
|
638 | (4) |
|
Managing Application Pools in IIS 6.0 |
|
|
642 | (7) |
|
Creating Application Pools |
|
|
643 | (2) |
|
Application Pools and Web Applications |
|
|
645 | (1) |
|
Custom Application Pool Identities |
|
|
646 | (3) |
|
Deploying Your ASP.NET Applications |
|
|
649 | (8) |
|
Verifying the ASP.NET Installation |
|
|
650 | (1) |
|
ASP.NET Side-By-Side Execution |
|
|
651 | (2) |
|
Configure HTTP Runtime Settings |
|
|
653 | (1) |
|
|
654 | (1) |
|
Deploying with Visual Studio |
|
|
655 | (2) |
|
The VirtualPathProvider in ASP.NET 2.0 |
|
|
657 | (5) |
|
Health Monitoring in ASP.NET 2.0 |
|
|
662 | (4) |
|
Understanding the Basic Structure |
|
|
662 | (1) |
|
|
663 | (3) |
|
|
666 | (3) |
|
|
|
The ASP.NET Security Model |
|
|
669 | (22) |
|
What It Means to Create Secure Software |
|
|
669 | (3) |
|
Understanding Potential Threats |
|
|
670 | (1) |
|
|
670 | (1) |
|
Understanding Gatekeepers |
|
|
671 | (1) |
|
Understanding the Levels of Security |
|
|
672 | (4) |
|
|
672 | (1) |
|
|
673 | (1) |
|
Confidentiality and Integrity |
|
|
674 | (1) |
|
|
675 | (1) |
|
Internet Information Services Security |
|
|
676 | (8) |
|
|
677 | (1) |
|
|
678 | (1) |
|
IIS and Secure Sockets Layer |
|
|
679 | (5) |
|
ASP.NET Security Architecture |
|
|
684 | (6) |
|
|
686 | (1) |
|
|
687 | (1) |
|
|
688 | (1) |
|
Membership and Roles APIs |
|
|
689 | (1) |
|
|
690 | (1) |
|
|
691 | (18) |
|
Introducing Forms Authentication |
|
|
691 | (5) |
|
Why Use Forms Authentication? |
|
|
692 | (1) |
|
Why Would You Not Use Forms Authentication? |
|
|
693 | (2) |
|
Why Not Implement Cookie Authentication Yourself? |
|
|
695 | (1) |
|
The Forms Authentication Classes |
|
|
696 | (1) |
|
Implementing Forms Authentication |
|
|
696 | (12) |
|
Configuring Forms Authentication |
|
|
697 | (2) |
|
Denying Access to Anonymous Users |
|
|
699 | (1) |
|
Creating a Custom Login Page |
|
|
700 | (5) |
|
|
705 | (1) |
|
Persistent Cookies in Forms Authentication |
|
|
706 | (2) |
|
|
708 | (1) |
|
|
709 | (42) |
|
Introducing the ASP.NET Membership API |
|
|
709 | (2) |
|
|
711 | (12) |
|
Configuring Forms Authentication |
|
|
713 | (1) |
|
|
714 | (4) |
|
Configuring Connection String and Membership Provider |
|
|
718 | (3) |
|
Creating and Authenticating Users |
|
|
721 | (2) |
|
Using the Security Controls |
|
|
723 | (21) |
|
|
724 | (8) |
|
|
732 | (1) |
|
|
733 | (1) |
|
The PasswordRecovery Control |
|
|
734 | (5) |
|
The ChangePassword Control |
|
|
739 | (1) |
|
The CreateUserWizard Control |
|
|
740 | (4) |
|
Using the Membership Class |
|
|
744 | (5) |
|
Retrieving Users from the Store |
|
|
745 | (2) |
|
Updating Users in the Store |
|
|
747 | (1) |
|
Creating and Deleting Users |
|
|
748 | (1) |
|
|
748 | (1) |
|
|
749 | (2) |
|
|
751 | (26) |
|
Introducing Windows Authentication |
|
|
751 | (9) |
|
Why Use Windows Authentication? |
|
|
752 | (1) |
|
Why Would You Not Use Windows Authentication? |
|
|
753 | (1) |
|
Mechanisms for Windows Authentication |
|
|
753 | (7) |
|
Implementing Windows Authentication |
|
|
760 | (6) |
|
|
760 | (2) |
|
|
762 | (1) |
|
Denying Access to Anonymous Users |
|
|
762 | (1) |
|
Accessing Windows User Information |
|
|
763 | (3) |
|
|
766 | (10) |
|
Impersonation in Windows 2000 |
|
|
766 | (2) |
|
Impersonation on Windows XP |
|
|
768 | (1) |
|
Impersonation and Delegation on Windows Server 2003 |
|
|
768 | (3) |
|
|
771 | (2) |
|
Programmatic Impersonation |
|
|
773 | (3) |
|
|
776 | (1) |
|
|
777 | (26) |
|
|
777 | (6) |
|
|
778 | (5) |
|
|
783 | (1) |
|
Authorization Checks in Code |
|
|
784 | (2) |
|
Using the IsInRole() Method |
|
|
784 | (1) |
|
Using the PrincipalPermission Class |
|
|
784 | (2) |
|
Using the Roles Service for Role-Based Authorization |
|
|
786 | (11) |
|
Using the LoginView Control with Roles |
|
|
792 | (1) |
|
Accessing Roles Programmatically |
|
|
793 | (2) |
|
Using the Roles Service with Windows Authentication |
|
|
795 | (2) |
|
Protecting Non--Web Page Resources |
|
|
797 | (4) |
|
Adding a File Type Mapping |
|
|
798 | (1) |
|
Writing a Custom HTTP Handler |
|
|
799 | (2) |
|
|
801 | (2) |
|
|
803 | (36) |
|
|
803 | (3) |
|
|
803 | (1) |
|
|
804 | (1) |
|
Profiles and Authentication |
|
|
805 | (1) |
|
Profiles vs. Custom Data Components |
|
|
805 | (1) |
|
Using the SqlProfileProvider |
|
|
806 | (16) |
|
Creating the Profile Tables |
|
|
806 | (3) |
|
|
809 | (1) |
|
Defining Profile Properties |
|
|
809 | (1) |
|
|
810 | (2) |
|
|
812 | (2) |
|
|
814 | (1) |
|
Profiles and Custom Data Types |
|
|
814 | (4) |
|
|
818 | (2) |
|
|
820 | (2) |
|
|
822 | (6) |
|
The Shopping Cart Classes |
|
|
823 | (2) |
|
|
825 | (3) |
|
|
828 | (1) |
|
Custom Profiles Providers |
|
|
828 | (9) |
|
The Custom Profiles Provider Classes |
|
|
828 | (2) |
|
Designing the FactoredProfileProvider |
|
|
830 | (1) |
|
Coding the FactoredProfileProvider |
|
|
831 | (4) |
|
Testing the FactoredProfileProvider |
|
|
835 | (2) |
|
|
837 | (2) |
|
|
839 | (28) |
|
Encrypting Data: Confidentiality Matters |
|
|
839 | (1) |
|
The .NET Cryptography Namespace |
|
|
840 | (3) |
|
Understanding the .NET Cryptography Classes |
|
|
843 | (5) |
|
Symmetric Encryption Algorithms |
|
|
844 | (1) |
|
|
845 | (1) |
|
The Abstract Encryption Classes |
|
|
846 | (1) |
|
The ICryptoTransform Interface |
|
|
846 | (1) |
|
|
847 | (1) |
|
Encrypting Sensitive Data |
|
|
848 | (13) |
|
|
848 | (2) |
|
Using Symmetric Algorithms |
|
|
850 | (5) |
|
Using Asymmetric Algorithms |
|
|
855 | (3) |
|
Encrypting Sensitive Data in a Database |
|
|
858 | (3) |
|
Encrypting the Query String |
|
|
861 | (5) |
|
Wrapping the Query String |
|
|
862 | (2) |
|
|
864 | (2) |
|
|
866 | (1) |
|
Custom Membership Providers |
|
|
867 | (30) |
|
Architecture of Custom Providers |
|
|
867 | (2) |
|
Basic Steps for Creating Custom Providers |
|
|
869 | (25) |
|
Overall Design of the Custom Provider |
|
|
869 | (1) |
|
Designing and Implementing the Custom Store |
|
|
870 | (6) |
|
Implementing the Provider Classes |
|
|
876 | (16) |
|
Using the Custom Provider Classes |
|
|
892 | (2) |
|
|
894 | (3) |
|
PART 5 Advanced User Interface |
|
|
|
|
897 | (42) |
|
Custom Server Control Basics |
|
|
898 | (10) |
|
Creating a Bare-Bones Custom Control |
|
|
898 | (2) |
|
|
900 | (1) |
|
Custom Controls in the Toolbox |
|
|
901 | (2) |
|
Creating a WebControl That Supports Style Properties |
|
|
903 | (3) |
|
|
906 | (2) |
|
Dealing with Different Browsers |
|
|
908 | (5) |
|
|
908 | (1) |
|
|
909 | (1) |
|
|
910 | (2) |
|
|
912 | (1) |
|
|
913 | (8) |
|
|
913 | (2) |
|
|
915 | (2) |
|
Postback Data and Change Events |
|
|
917 | (2) |
|
|
919 | (2) |
|
Extending Existing Web Controls |
|
|
921 | (8) |
|
|
921 | (3) |
|
|
924 | (5) |
|
|
929 | (9) |
|
Creating a Templated Control |
|
|
929 | (3) |
|
Using Customized Templates |
|
|
932 | (4) |
|
|
936 | (2) |
|
|
938 | (1) |
|
|
939 | (34) |
|
|
940 | (6) |
|
|
940 | (4) |
|
Attributes and Inheritance |
|
|
944 | (1) |
|
|
944 | (2) |
|
|
946 | (2) |
|
|
948 | (16) |
|
|
948 | (7) |
|
|
955 | (6) |
|
|
961 | (3) |
|
|
964 | (3) |
|
|
964 | (3) |
|
|
967 | (4) |
|
|
967 | (2) |
|
The DesignerActionItem Collection |
|
|
969 | (2) |
|
|
971 | (1) |
|
|
971 | (2) |
|
|
973 | (38) |
|
|
973 | (12) |
|
|
974 | (2) |
|
|
976 | (7) |
|
|
983 | (2) |
|
|
985 | (3) |
|
|
985 | (2) |
|
Disabling Request Validation |
|
|
987 | (1) |
|
|
988 | (6) |
|
Creating a Client Callback |
|
|
989 | (4) |
|
Client Callbacks ``Under the Hood'' |
|
|
993 | (1) |
|
Custom Controls with JavaScript |
|
|
994 | (11) |
|
|
995 | (3) |
|
|
998 | (3) |
|
|
1001 | (4) |
|
|
1005 | (4) |
|
|
1006 | (1) |
|
|
1007 | (2) |
|
|
1009 | (2) |
|
Dynamic Graphics and GDI+ |
|
|
1011 | (32) |
|
|
1011 | (5) |
|
|
1012 | (1) |
|
|
1013 | (1) |
|
|
1014 | (2) |
|
|
1016 | (12) |
|
|
1017 | (2) |
|
|
1019 | (1) |
|
|
1020 | (2) |
|
|
1022 | (2) |
|
|
1024 | (2) |
|
|
1026 | (2) |
|
Embedding Dynamic Graphics in a Web Page |
|
|
1028 | (9) |
|
|
1029 | (1) |
|
Passing Information to Dynamic Images |
|
|
1030 | (3) |
|
Custom Controls That Use GDI+ |
|
|
1033 | (4) |
|
|
1037 | (5) |
|
|
1042 | (1) |
|
Portals with WebPart Pages |
|
|
1043 | (44) |
|
|
1043 | (2) |
|
|
1045 | (9) |
|
|
1046 | (1) |
|
WebPartManager and WebPartZones |
|
|
1047 | (2) |
|
Adding WebParts to the Page |
|
|
1049 | (3) |
|
|
1052 | (2) |
|
|
1054 | (29) |
|
|
1054 | (7) |
|
Developing Advanced WebParts |
|
|
1061 | (8) |
|
|
1069 | (6) |
|
|
1075 | (6) |
|
|
1081 | (1) |
|
Final Tasks for Personalization |
|
|
1082 | (1) |
|
|
1082 | (1) |
|
|
1083 | (4) |
|
|
|
|
1087 | (42) |
|
|
1088 | (8) |
|
The History of Web Services |
|
|
1089 | (1) |
|
Distributed Computing and Web Services |
|
|
1090 | (1) |
|
The Problems with Distributed Component Technologies |
|
|
1091 | (1) |
|
The Benefits of Web Services |
|
|
1091 | (2) |
|
Making Money with Web Services |
|
|
1093 | (1) |
|
|
1093 | (3) |
|
Building a Basic Web Service |
|
|
1096 | (10) |
|
|
1096 | (1) |
|
|
1097 | (3) |
|
|
1100 | (3) |
|
|
1103 | (3) |
|
|
1106 | (14) |
|
|
1112 | (1) |
|
Creating an ASP.NET Client |
|
|
1113 | (2) |
|
Creating a Windows Forms Client |
|
|
1115 | (2) |
|
Creating an ASP Client with MSXML |
|
|
1117 | (2) |
|
Creating an ASP Client with the SOAP Toolkit |
|
|
1119 | (1) |
|
|
1120 | (8) |
|
|
1121 | (2) |
|
|
1123 | (3) |
|
|
1126 | (1) |
|
|
1126 | (2) |
|
|
1128 | (1) |
|
Web Service Standards and Extensions |
|
|
1129 | (44) |
|
|
1129 | (2) |
|
|
1131 | (13) |
|
|
1132 | (1) |
|
|
1133 | (1) |
|
|
1134 | (2) |
|
|
1136 | (4) |
|
|
1140 | (4) |
|
|
1144 | (8) |
|
Viewing the WSDL for a Web Service |
|
|
1144 | (2) |
|
|
1146 | (4) |
|
Implementing an Existing Contract |
|
|
1150 | (2) |
|
Customizing SOAP Messages |
|
|
1152 | (19) |
|
Serializing Complex Data Types |
|
|
1152 | (5) |
|
Customizing XML Serialization with Attributes |
|
|
1157 | (3) |
|
Customizing XML Serialization with IXmISerializable |
|
|
1160 | (3) |
|
Custom Serialization for Large Data Types |
|
|
1163 | (6) |
|
Schema Importer Extensions |
|
|
1169 | (2) |
|
|
1171 | (2) |
|
|
1173 | (36) |
|
|
1173 | (10) |
|
|
1174 | (1) |
|
A Simple Asynchronous Call |
|
|
1175 | (3) |
|
Concurrent Asynchronous Calls |
|
|
1178 | (1) |
|
Responsive Windows Clients |
|
|
1179 | (3) |
|
|
1182 | (1) |
|
|
1183 | (8) |
|
|
1184 | (2) |
|
Custom Ticket-Based Authentication |
|
|
1186 | (1) |
|
Tracking the User Identity |
|
|
1187 | (1) |
|
|
1188 | (1) |
|
|
1188 | (1) |
|
Testing the SOAP Authentication System |
|
|
1189 | (2) |
|
|
1191 | (9) |
|
Creating a SOAP Extension |
|
|
1193 | (7) |
|
The Web Services Enhancements |
|
|
1200 | (8) |
|
|
1201 | (2) |
|
Performing Authentication with the WSE |
|
|
1203 | (5) |
|
|
1208 | (1) |
Index |
|
1209 | |