Cover image for ASP.NET in a nutshell
ASP.NET in a nutshell
Duthie, G. Andrew, 1967-
Personal Author:
Second edition.
Publication Information:
Beijing ; Farnham ; Sebastopol : O'Reilly, [2003]

Physical Description:
xvi, 979 pages : illustrations ; 23 cm
General Note:
Previous ed.: 2002.

Includes index.
Title Subject:
Added Author:
Format :


Call Number
Material Type
Home Location
Item Holds
TK5105.8885.A26 D88 2003 Adult Non-Fiction Non-Fiction Area

On Order



ASP.NET in a Nutshell is a concise, one-volume reference to everything you need to make effective use of ASP.NET. An invaluable resource that goes beyond the published documentation to highlight little-known details, stress practical uses for particular features, and provide real-world examples that show how features can be used in a working application, ASP.NET in a Nutshell is the definitive guide for developers of both applications and web services.Updated for Visual Studio .NET 2003, the 2nd edition of this book includes fresh information on application and web service development, custom controls, data access, security, deployment, and error handling, new material on web application development for mobile devices, plus an overview of the class libraries. For developers who still use Microsoft's older ASP technology, this book also provides information for migrating to ASP.NET.The material in ASP.NET in a Nutshell is presented in three sections:

A fast-paced introduction to ASP.NET that examines topics such as building ASP.NET applications, developing web services, creating custom controls and user controls for maximum code reuse, debugging and handling errors, understanding ASP.NET security, and configuring and deploying an ASP.NET application A detailed reference to the properties, methods, and events of the most frequently used ASP.NET classes which include the Page class and the new .NET classes, such as HttpApplicationState and HttpSessionState, which correspond to the intrinsic objects in classic ASP. Configuration settings in web.config are also documented A Quick Reference to the types (the classes, structures, interfaces, delegates, events, and enumerations) found in web-related namespaces to the .NET Framework Class Library. Like other books in the "In a Nutshell" series, ASP.NET in a Nutshell , 2nd Edition, offers the facts, including critical background information, in a no-nonsense manner that users will refer to again and again. With its wealth of up-to-date information, ASP.NET in a Nutshell is a book that web developers will refer to again and again.

Author Notes

G. Andrew Duthie is an experienced ASP.NET developer. He is a frequent speaker at ASP.NET conferences, and is the author of a number of books on ASP.NET and Visual Interdev.

Matthew MacDonald is a developer, author, and educator in all things Visual Basic and .NET. He's worked with Visual Basic and ASP since their initial versions, and written over a dozen books on the subject, including The Book of VB .NET (No Starch Press) and Visual Basic 2005: A Developer's Notebook (O'Reilly). He has also written Excel 2007:The Missing Manual, Excel 2007 for Starters: The Missing Manual, Access 2007:The Missing Manual, and Access 2007 for Starters: The Missing Manual, all from O'Reilly. His web site is .

Table of Contents

Prefacep. xi
Part I. Introduction to ASP.NET
1. Introductionp. 3
.NET Platform Fundamentalsp. 3
Object Orientation in the .NET Platformp. 11
Choosing a Languagep. 12
Why and When Would I Use ASP.NET?p. 13
Why and When Would I Port an Existing Application to ASP.NET?p. 14
New Features in ASP.NETp. 15
2. ASP.NET Applicationsp. 17
Application Typesp. 17
Application Structure and Boundariesp. 22
Application File Typesp. 25
3. Web Formsp. 30
Structuring an ASP.NET Pagep. 31
Stages of Page Processingp. 46
State Managementp. 52
Caching Page Outputp. 53
Additional Resourcesp. 54
4. Web Servicesp. 55
Standards and Specificationsp. 55
Web Services Architecturep. 57
Creating a Web Servicep. 58
Consuming a Web Servicep. 68
Additional Resourcesp. 70
5. ASP.NET Server Controlsp. 71
HTML Controlsp. 71
Web Controlsp. 72
Using Controlsp. 73
Types of Web Controlsp. 78
Handling Control Eventsp. 108
Modifying Control Appearancep. 112
Additional Resourcesp. 116
6. User Controls and Custom Server Controlsp. 118
User Controlsp. 119
Custom Server Controlsp. 123
Sharing Controls Across Applicationsp. 154
Additional Resourcesp. 155
7. Data Access and Data Bindingp. 156
ADO.NET: An Overviewp. 157
Reading Datap. 157
Data Bindingp. 164
Inserting and Updating Datap. 168
Deleting Datap. 175
Additional Resourcesp. 178
8. ASP.NET Configurationp. 179
Understanding Configuration Filesp. 179
Modifying Configuration Settingsp. 180
Locking Down Configuration Settingsp. 186
Targeting a Specific Runtime Versionp. 187
Additional Resourcesp. 189
9. ASP.NET Securityp. 190
Authentication Methodsp. 191
Authorizationp. 204
Ensuring Input Safetyp. 206
Patchingp. 208
Code Access Securityp. 209
Additional Resourcesp. 210
10. Error Handling, Debugging, and Tracingp. 211
Error Handlingp. 211
Debuggingp. 220
Tracingp. 225
Additional Resourcesp. 229
11. ASP.NET Deploymentp. 230
Deploying ASP.NET Applicationsp. 230
Deploying Assembliesp. 231
Deploying Through Visual Studio .NETp. 234
Additional Resourcesp. 239
Part II. Intrinsic Class Reference
12. The Page Classp. 243
Comments/Troubleshootingp. 245
Properties Referencep. 246
Collections Referencep. 262
Methods Referencep. 264
Events Referencep. 268
13. The HttpApplicationState Classp. 272
Comments/Troubleshootingp. 276
Properties Referencep. 278
Collections Referencep. 280
Methods Referencep. 283
Events Referencep. 289
14. The HttpContext Classp. 291
Comments/Troubleshootingp. 292
Properties Referencep. 293
Collections Referencep. 301
Methods Referencep. 302
15. The HttpException Classp. 307
Comments/Troubleshootingp. 308
Constructor Referencep. 308
Properties Referencep. 309
Methods Referencep. 314
16. The HttpRequest Classp. 318
Comments/Troubleshootingp. 320
Properties Referencep. 321
Collections Referencep. 340
Methods Referencep. 353
17. The HttpResponse Classp. 356
Comments/Troubleshootingp. 357
Properties Referencep. 358
Collections Referencep. 369
Methods Referencep. 371
18. The HttpServerUtility Classp. 385
Comments/Troubleshootingp. 386
Properties Referencep. 386
Methods Referencep. 388
19. The HttpSessionState Classp. 400
Comments/Troubleshootingp. 404
Properties Referencep. 406
Collections Referencep. 413
Methods Referencep. 415
Events Referencep. 420
20. web.config Referencep. 422
Comments/Troubleshootingp. 424
web.config Elementsp. 425
Part III. Namespace Reference
21. Namespace Referencep. 465
Reading a Quick-Reference Entryp. 467
22. Converting from C# to VB Syntaxp. 472
General Considerationsp. 472
Classesp. 473
Structuresp. 474
Interfacesp. 474
Class, Structure, and Interface Membersp. 474
Delegatesp. 478
Enumerationsp. 478
23. The System.Web Namespacep. 480
24. The System.Web.Caching Namespacep. 515
25. The System.Web.Configuration Namespacep. 520
26. The System.Web.Hosting Namespacep. 523
27. The System.Web.Mail Namespacep. 527
28. The System.Web.Mobile Namespacep. 531
29. The System.Web.Security Namespacep. 537
30. The System.Web.Services Namespacep. 549
31. The System.Web.Services.Configuration Namespacep. 553
32. The System.Web.Services.Description Namespacep. 556
33. The System.Web.Services.Discovery Namespacep. 594
34. The System.Web.Services.Protocols Namespacep. 606
35. The System.Web.SessionState Namespacep. 631
36. The System.Web.UI Namespacep. 636
37. The System.Web.UI.Design Namespacep. 680
38. The System.Web.UI.Design.WebControls Namespacep. 700
39. The System.Web.UI.HtmlControls Namespacep. 716
40. The System.Web.UI.MobileControls Namespacep. 732
41. The System.Web.UI.MobileControls.Adapters Namespacep. 791
42. The System.Web.UI.WebControls Namespacep. 821
Type, Method, Property, and Field Indexp. 901
Indexp. 953