Teach yourself the fundamentals of Web development with ASP.NET 3.5—one step at a time. With STEP BY STEP, you get the guidance and learn-by-doing examples you need to start building Web applications and Web services in the Microsoft Visual Studio® 2008 environment. The author—a highly regarded programming expert, writer, and instructor—illuminates ASP.NET features through practical examples that help developers quickly grasp concepts and apply techniques to the real world. The book also includes a companion CD with code samples, data sets, and a fully searchable eBook.
A Note Regarding the CD or DVD
The print version of this book ships with a CD or DVD. For those customers purchasing one of the digital formats in which this book is available, we are pleased to offer the CD/DVD content as a free download via O'Reilly Media's Digital Distribution services. To download this content, please visit O'Reilly's web site, search for the title of this book to find its catalog page, and click on the link below the cover image (Examples, Companion Content, or Practice Files). Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to booktech@oreilly.com.
Fundamentals
Chapter 1 Web Application Basics
HTTP Requests
HyperText Markup Language
Dynamic Content
Internet Information Services
Classic ASP (Putting ASP.NET into Perspective)
Web Development Concepts
ASP.NET
Summary
Quick Reference
Chapter 2 ASP.NET Application Fundamentals
The Canonical Hello World Application
The ASP.NET Compilation Model
Coding Options
The ASP.NET HTTP Pipeline
Visual Studio and ASP.NET
Summary
Quick Reference
Chapter 3 The Page Rendering Model
Rendering Controls as Tags
Packaging UI as Components
Adding Controls Using Visual Studio
Summary
Quick Reference
Chapter 4 Custom Rendered Controls
The Control Class
Visual Studio and Custom Controls
A Palindrome Checker
Controls and Events
HtmlTextWriter and Controls
Controls and ViewState
Summary
Quick Reference
Chapter 5 Composite Controls
Composite Controls versus Rendered Controls
Custom Composite Controls
User Controls
When to Use Each Type of Control
Summary
Quick Reference
Chapter 6 Control Potpourri
Validation
Image-Based Controls
TreeView
MultiView
Summary
Quick Reference
Advanced Features
Chapter 7 Web Parts
A Brief History of Web Parts
What Good Are Web Parts?
The Web Parts Architecture
Developing a Web Part
Summary
Quick Reference
Chapter 8 A Consistent Look and Feel
A Consistent Look and Feel
ASP.NET Master Pages
Themes
Skins
Summary
Quick Reference
Chapter 9 Configuration
Windows Configuration
.NET Configuration
Configuring ASP.NET from IIS
Summary
Quick Reference
Chapter 10 Logging In
Web-Based Security
ASP.NET Authentication Services
Managing Users
ASP.NET Login Controls
Authorizing Users
Summary
Quick Reference
Chapter 11 Data Binding
Representing Collections without Data Binding
Representing Collections with Data Binding
Simple Data Binding
Accessing Databases
The .NET Database Story
ASP.NET Data Sources
Other Data-bound Controls
LINQ
Summary
Quick Reference
Chapter 12 Web Site Navigation
ASP.NET's Navigation Support
The Navigation Controls
Building a Navigable Web Site
Trapping the SiteMapResolve Event
Custom Attributes for Each Node
Security Trimming
URL Mapping
Summary
Quick Reference
Chapter 13 Personalization
Personalizing Web Visits
Personalization in ASP.NET
Using Personalization
Summary
Quick Reference
Caching and State Management
Chapter 14 Session State
Why Session State?
ASP.NET and Session State
Introduction to Session State
Session State and More Complex Data
Configuring Session State
Tracking Session State
Other Session Configuration Settings
The Wizard Control: Alternative to Session State
Summary
Quick Reference
Chapter 15 Application Data Caching
Using the Data Cache
Impact of Caching
Managing the Cache
Summary
Quick Reference
Chapter 16 Caching Output
Caching Page Content
Managing Cached Content
Caching User Controls
When Output Caching Makes Sense
Summary
Quick Reference
Diagnostics and Plumbing
Chapter 17 Diagnostics and Debugging
Page Tracing
Application Tracing
Debugging with Visual Studio
Error Pages
Unhandled Exceptions
Summary
Quick Reference
Chapter 18 The HttpApplication Class and HTTP Modules
The Application: A Rendezvous Point
Overriding HttpApplication
HttpModules
Global.asax versus HttpModules
Summary
Quick Reference
Chapter 19 Custom Handlers
Handlers
Built-in Handlers
IHttpHandler
Handlers and Session State
Generic Handlers (ASHX Files)
Summary
Quick Reference
Services, AJAX, Deployment, and Silverlight
Chapter 20 ASP.NET Web Services
Remoting
Remoting over the Web
If You Couldn't Use ASP.NET...
A Web Service in ASP.NET
Consuming Web Services
Asynchronous Execution
Evolution of Web Services
Other Features
Summary
Quick Reference
Chapter 21 Windows Communication Foundation
Distributed Computing Redux
A Fragmented Communications API
WCF for Connected Systems
WCF Constituent Elements
How WCF Plays with ASP.NET
Writing a WCF Service
Building a WCF Client
Summary
Quick Reference
Chapter 22 AJAX
What Is AJAX?
AJAX Overview
ASP.NET Server-Side Support for AJAX
AJAX Client Support
Getting Familiar with AJAX
The Timer
Updating Progress
Extender Controls
Summary
Quick Reference
Chapter 23 ASP.NET and WPF Content
What Is WPF?
WPF Content and Web Applications
What about Silverlight?
Summary
Quick Reference
Chapter 24 How Web Application Types Affect Deployment
George Shepherd is an expert on the Microsoft .NET Framework and develops some of the industry's leading third-party .NET-based tools. He is the coauthor of several popular programming books, an instructor for DevelopMentor, a speaker at industry conferences, and has served as a contributing editor for MSDN® Magazine. He's been programming with Windows since version 2.0, in the 1980s.