Synopses & Reviews
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 email@example.com.
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.
For customers who purchase an ebook version of this title, instructions for downloading the CD files can be found in the ebook.
About the Author
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.
Table of Contents
Dedication; Introduction; The Road to ASP.NET 3.5; Using This Book; Conventions and Features in This Book; System Requirements; Using Microsoft Access; Code Samples; Software Release; Support for This Book; Acknowledgments; Fundamentals; Chapter 1: Web Application Basics; 1.1 HTTP Requests; 1.2 HyperText Markup Language; 1.3 Dynamic Content; 1.4 Internet Information Services; 1.5 Classic ASP (Putting ASP.NET into Perspective); 1.6 Web Development Concepts; 1.7 ASP.NET; 1.8 Summary; 1.9 Quick Reference; Chapter 2: ASP.NET Application Fundamentals; 2.1 The Canonical Hello World Application; 2.2 The ASP.NET Compilation Model; 2.3 Coding Options; 2.4 The ASP.NET HTTP Pipeline; 2.5 Visual Studio and ASP.NET; 2.6 Summary; 2.7 Quick Reference; Chapter 3: The Page Rendering Model; 3.1 Rendering Controls as Tags; 3.2 Packaging UI as Components; 3.3 Adding Controls Using Visual Studio; 3.4 Summary; 3.5 Quick Reference; Chapter 4: Custom Rendered Controls; 4.1 The Control Class; 4.2 Visual Studio and Custom Controls; 4.3 A Palindrome Checker; 4.4 Controls and Events; 4.5 HtmlTextWriter and Controls; 4.6 Controls and ViewState; 4.7 Summary; 4.8 Quick Reference; Chapter 5: Composite Controls; 5.1 Composite Controls versus Rendered Controls; 5.2 Custom Composite Controls; 5.3 User Controls; 5.4 When to Use Each Type of Control; 5.5 Summary; 5.6 Quick Reference; Chapter 6: Control Potpourri; 6.1 Validation; 6.2 Image-Based Controls; 6.3 TreeView; 6.4 MultiView; 6.5 Summary; 6.6 Quick Reference; Advanced Features; Chapter 7: Web Parts; 7.1 A Brief History of Web Parts; 7.2 What Good Are Web Parts?; 7.3 The Web Parts Architecture; 7.4 Developing a Web Part; 7.5 Summary; 7.6 Quick Reference; Chapter 8: A Consistent Look and Feel; 8.1 A Consistent Look and Feel; 8.2 ASP.NET Master Pages; 8.3 Themes; 8.4 Skins; 8.5 Summary; 8.6 Quick Reference; Chapter 9: Configuration; 9.1 Windows Configuration; 9.2 .NET Configuration; 9.3 Configuring ASP.NET from IIS; 9.4 Summary; 9.5 Quick Reference; Chapter 10: Logging In; 10.1 Web-Based Security; 10.2 ASP.NET Authentication Services; 10.3 Managing Users; 10.4 ASP.NET Login Controls; 10.5 Authorizing Users; 10.6 Summary; 10.7 Quick Reference; Chapter 11: Data Binding; 11.1 Representing Collections without Data Binding; 11.2 Representing Collections with Data Binding; 11.3 Simple Data Binding; 11.4 Accessing Databases; 11.5 The .NET Database Story; 11.6 ASP.NET Data Sources; 11.7 Other Data-bound Controls; 11.8 LINQ; 11.9 Summary; 11.10 Quick Reference; Chapter 12: Web Site Navigation; 12.1 ASP.NET's Navigation Support; 12.2 The Navigation Controls; 12.3 Building a Navigable Web Site; 12.4 Trapping the SiteMapResolve Event; 12.5 Custom Attributes for Each Node; 12.6 Security Trimming; 12.7 URL Mapping; 12.8 Summary; 12.9 Quick Reference; Chapter 13: Personalization; 13.1 Personalizing Web Visits; 13.2 Personalization in ASP.NET; 13.3 Using Personalization; 13.4 Summary; 13.5 Quick Reference; Caching and State Management; Chapter 14: Session State; 14.1 Why Session State?; 14.2 ASP.NET and Session State; 14.3 Introduction to Session State; 14.4 Session State and More Complex Data; 14.5 Configuring Session State; 14.6 Tracking Session State; 14.7 Other Session Configuration Settings; 14.8 The Wizard Control: Alternative to Session State; 14.9 Summary; 14.10 Quick Reference; Chapter 15: Application Data Caching; 15.1 Using the Data Cache; 15.2 Impact of Caching; 15.3 Managing the Cache; 15.4 Summary; 15.5 Quick Reference; Chapter 16: Caching Output; 16.1 Caching Page Content; 16.2 Managing Cached Content; 16.3 Caching User Controls; 16.4 When Output Caching Makes Sense; 16.5 Summary; 16.6 Quick Reference; Diagnostics and Plumbing; Chapter 17: Diagnostics and Debugging; 17.1 Page Tracing; 17.2 Application Tracing; 17.3 Debugging with Visual Studio; 17.4 Error Pages; 17.5 Unhandled Exceptions; 17.6 Summary; 17.7 Quick Reference; Chapter 18: The HttpApplication Class and HTTP Modules; 18.1 The Application: A Rendezvous Point; 18.2 Overriding HttpApplication; 18.3 HttpModules; 18.4 Global.asax versus HttpModules; 18.5 Summary; 18.6 Quick Reference; Chapter 19: Custom Handlers; 19.1 Handlers; 19.2 Built-in Handlers; 19.3 IHttpHandler; 19.4 Handlers and Session State; 19.5 Generic Handlers (ASHX Files); 19.6 Summary; 19.7 Quick Reference; Services, AJAX, Deployment, and Silverlight; Chapter 20: ASP.NET Web Services; 20.1 Remoting;;;;;; 20.2 Remoting over the Web; 20.3 If You Couldn't Use ASP.NET...; 20.4 A Web Service in ASP.NET; 20.5 Consuming Web Services; 20.6 Asynchronous Execution; 20.7 Evolution of Web Services; 20.8 Other Features; 20.9 Summary; 20.10 Quick Reference; Chapter 21: Windows Communication Foundation; 21.1 Distributed Computing Redux; 21.2 A Fragmented Communications API; 21.3 WCF for Connected Systems; 21.4 WCF Constituent Elements; 21.5 How WCF Plays with ASP.NET; 21.6 Writing a WCF Service; 21.7 Building a WCF Client; 21.8 Summary; 21.9 Quick Reference; Chapter 22: AJAX; 22.1 What Is AJAX?; 22.2 AJAX Overview; 22.3 ASP.NET Server-Side Support for AJAX; 22.4 AJAX Client Support; 22.5 Getting Familiar with AJAX; 22.6 The Timer; 22.7 Updating Progress; 22.8 Extender Controls; 22.9 Summary; 22.10 Quick Reference; Chapter 23: ASP.NET and WPF Content; 23.1 What Is WPF?; 23.2 WPF Content and Web Applications; 23.3 What about Silverlight?; 23.4 Summary; 23.5 Quick Reference; Chapter 24: How Web Application Types Affect Deployment; 24.1 Visual Studio Projects; 24.2 Precompiling; 24.3 Summary; 24.4 Quick Reference; Glossary;