About the Authors
Credits
Acknowledgments
Contents
Introduction
A Little Bit of History
The Goals of ASP.NET
Additional Features of ASP.NET 3.5
What You Need for ASP.NET 3.5
Who Should Read This Book?
What This Book Covers
Conventions
Source Code
Errata
p2p.wrox.com
Chapter 1: Application and Page Frameworks
Application Location Options
The ASP.NET Page Structure Options
ASP.NET 3.5 Page Directives
ASP.NET Page Events
Dealing with PostBacks
Cross-Page Posting
ASP.NET Application Folders
Compilation
Build Providers
Global.asax
Working with Classes Through VS2008
Summary
Chapter 2: ASP.NET Server Controls and Client-Side Scripts
Chapter 3: ASP.NET Web Server Controls
An Overview of Web Server Controls
The Label Server Control
The Literal Server Control
The TextBox Server Control
The Button Server Control
The LinkButton Server Control
The ImageButton Server Control
The HyperLink Server Control
The DropDownList Server Control
Visually Removing Items from a Collection
The ListBox Server Control
The CheckBox Server Control
The CheckBoxList Server Control
The RadioButton Server Control
The RadioButtonList Server Control
Image Server Control
Table Server Control
The Calendar Server Control
AdRotator Server Control
The Xml Server Control
Panel Server Control
The PlaceHolder Server Control
BulletedList Server Control
HiddenField Server Control
FileUpload Server Control
MultiView and View Server Controls
Wizard Server Control
ImageMap Server Control
Summary
Chapter 4: Validation Server Controls
Understanding Validation
Client-Side versus Server-Side Validation
ASP.NET Validation Server Controls
Turning Off Client-Side Validation
Using Images and Sounds for Error Notifications
Working with Validation Groups
Summary
Chapter 5: Working with Master Pages
Why Do You Need Master Pages?
The Basics of Master Pages
Coding a Master Page
Coding a Content Page
Specifying Default Content in the Master Page
Programmatically Assigning the Master Page
Nesting Master Pages
Container-Specific Master Pages
Event Ordering
Caching with Master Pages
ASP.NET AJAX and Master Pages
Summary
Chapter 6: Themes and Skins
Using ASP.NET Themes
Creating Your Own Themes
Defining Multiple Skin Options
Programmatically Working with Themes
Themes, Skins, and Custom Controls
Summary
Chapter 7: Data Binding in ASP.NET 3.5
Data Source Controls
Configuring Data Source Control Caching
Storing Connection Information
Using Bound List Controls with Data Source Controls
Other Databound Controls
Inline Data-Binding Syntax
Expressions and Expression Builders
Summary
Chapter 8: Data Management with ADO.NET
Basic ADO.NET Features
The DataList Server Control
The ListView Server Control
Using Visual Studio for ADO.NET Tasks
Asynchronous Command Execution
Summary
Chapter 9: Querying with LINQ
LINQ to Objects
LINQ to XML
LINQ to SQL
Summary
Chapter 10: Working with XML and LINQ to XML
Chapter 11: IIS7
Modular Architecture of IIS7
Extensible Architecture of IIS7
IIS7 and ASP.NET Integrated Pipeline
Building a Customized Web Server
Internet Information Services (IIS) Manager
Moving an Application from IIS6 to IIS7
Summary
Chapter 12: Introduction to the Provider Model
Chapter 13: Extending the Provider Model
Providers Are One Tier in a Larger Architecture
Modifying Through Attribute-Based Programming
Examining ProviderBase
Building Your Own Providers
Extending Pre-Existing Providers
Summary
Chapter 14: Site Navigation
Chapter 15: Personalization
The Personalization Model
Creating Personalization Properties
Anonymous Personalization
Programmatic Access to Personalization
Personalization Providers
Managing Application Profiles
Summary
Chapter 16: Membership and Role Management
Authentication
Authorization
ASP.NET 3.5 Authentication
ASP.NET 3.5 Authorization
Using the Web Site Administration Tool
Public Methods of the Membership API
Public Methods of the Roles API
Summary
Chapter 17: Portal Frameworks and Web Parts
Introducing Web Parts
Building Dynamic and Modular Web Sites
Working with Classes in the Portal Framework
Creating Custom Web Parts
Connecting Web Parts
Summary
Chapter 18: HTML and CSS Design with ASP.NET
Caveats
HTML and CSS Overview
Summary
Chapter 19: ASP.NET AJAX
Understanding the Need for AJAX
ASP.NET AJAX and Visual Studio 2008
ASP.NET AJAX Applications
ASP.NET AJAX’s Server-Side Controls
Using Multiple UpdatePanel Controls
Summary
Chapter 20: ASP.NET AJAX Control Toolkit
Downloading and Installing
The ASP.NET AJAX Controls
ASP.NET AJAX Control Toolkit Server Controls
Summary
Chapter 21: Security
Authentication and Authorization
Applying Authentication Measures
Authenticating Specific Files and Folders
Programmatic Authorization
Identity and Impersonation
Securing Through IIS
Summary
Chapter 22: State Management
What Are Your Choices?
Understanding the Session Object in ASP.NET
The Application Object
QueryStrings
Cookies
PostBacks and Cross-Page PostBacks
Hidden Fields, ViewState, and ControlState
Using HttpContext.Current.Items for Very Short-Term Storage
Summary
Chapter 23: Caching
Caching
Caching Programmatically
Using the SQL Server Cache Dependency
Configuring Your ASP.NET Application
Testing SQL Server Cache Invalidation
Summary
Chapter 24: Debugging and Error Handling
Chapter 25: File I/O and Streams
Working with Drives, Directories, and Files
Reading and Writing Files
Working with Serial Ports
Network Communications
Summary
Chapter 26: User and Server Controls
User Controls
Server Controls
Summary
Chapter 27: Modules and Handlers
Processing HTTP Requests
HttpModules
Summary
Chapter 28: Using Business Objects
Using Business Objects in ASP.NET 3.5
COM Interop: Using COM Within .NET
Using .NET from Unmanaged Code
Summary
Chapter 29: Building and Consuming Services
Communication Between Disparate Systems
Building a Simple XML Web Service
Consuming a Simple XML Web Service
Transport Protocols for Web Services
Overloading WebMethods
Caching Web Service Responses
SOAP Headers
Consuming Web Services Asynchronously
Windows Communication Foundation
Building the WCF Consumer
Summary
Chapter 30: Localization
Chapter 31: Configuration
Chapter 32: Instrumentation
Working with the Event Log
Using Performance Counters
Application Tracing
Understanding Health Monitoring
Summary
Chapter 33: Administration and Management
Chapter 34: Packaging and Deploying ASP.NET Applications
Deployment Pieces
Steps to Take before Deploying
Methods of Deploying Web Applications
Looking More Closely at Installer Options
Summary
Appendix A: Migrating Older ASP.NET Projects
Migrating Is Not Difficult
When Mixing Versions — Forms Authentication
Upgrading — ASP.NET Reserved Folders
ASP.NET 3.5 Pages Come as XHTML
No Hard-Coded .js Files in ASP.NET 3.5
Converting ASP.NET 1.x Applications in Visual Studio 2008
Migrating from ASP.NET 2.0 to 3.5
Appendix B: ASP.NET Ultimate Tools
Appendix C: Silverlight
Appendix D: ASP.NET Online Resources
Index