Synopses & Reviews
Teach yourself the fundamentals of ASP.NET 2.0one step at a time. With this practical, learn-by-doing tutorial, you get the guidance you need to start creating components and working applications for the Web
Discover how to: Work in the Microsoft Visual Studio 2005 development environment Add standard, built-in controls, custom controls, and Web Parts to any page Use Master pages, themes, and skins to build a consistently styled user interface Manage access to your application Enable personalization capabilities Build custom handlers Use caching to help improve application performance Trace and debug applications Configure and manage session state Create and use Web services Compile and deploy applications
CD features: Microsoft Visual C# code samples
PLUSGet Microsoft Visual Basic 2005 code samples on the Web
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 OReilly Medias Digital Distribution services. To download this content, please visit OReillys 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.
The Web application infrastructure ASP.NET, introduced as part of version 1.0 of the Microsoft .NET Framework, provides the thin-client counterpart to Microsoft Windows client development. With dramatic improvements in performance, productivity, and security features, Microsoft Visual Studio 2005 and ASP.NET 2.0 deliver a simplified, high-performance, and powerful Web development experience. ASP.NET 2.0 features a new set of controls and infrastructure that simplify Web-based data access and include functionality that facilitates code reuse, visual consistency, and aesthetic appeal. Now you can teach yourself the essentials of working with ASP.NET 2.0 in the Visual Studio environment--"one step at a time. With STEP BY STEP, you work at your own pace through hands-on, learn-by-doing exercises. Whether you're a beginning programmer or new to this version of the technology, you'll understand the core capabilities and fundamental techniques for ASP.NET 2.0. Each chapter puts you to work, showing you how, when, and why to use specific features of the ASP.NET 2.0 rapid application development environment and guiding you as you create actual components and working applications for the Web, including advanced features such as personalization.
Teach yourself the fundamentals of ASP.NET 2.0—one step at a time. With this practical, learn-by-doing tutorial, you get the guidance you need to start creating components and working applications for the Web!
Discover how to:
- Work in the Microsoft Visual Studio 2005 development environment
- Add standard, built-in controls, custom controls, and Web Parts to any page
- Use Master pages, themes, and skins to build a consistently styled user interface
- Manage access to your application
- Enable personalization capabilities
- Build custom handlers
- Use caching to help improve application performance
- Trace and debug applications
- Configure and manage session state
- Create and use Web services
- Compile and deploy applications
- Microsoft Visual C# code samples
PLUS—Get Microsoft Visual Basic 2005 code samples on the Web
For customers who purchase an ebook version of this title, instructions for downloading the CD files can be found in the ebook.
Get a practical, scenario-based introduction to developing applications with Windows® Presentation Foundation-and deliver a richer, high-fidelity experience for users. Written by Microsoft® Software Legend Billy Hollis, this guide walks you through four scenarios that cover a broad spectrum of potential Windows® Presentation Foundation-based applications. You'll build your knowledge of Windows® Presentation Foundation features and capabilities by seeing them in the context of working, real-world applications, including:
1. A minimal shopping application hosted in a browser.
2. A typical "forms-cover-data" application that demonstrates the superior layout, adaptability, and interactive capabilities of Windows® Presentation Foundation.
3. A basic, "skinnable" media application that enables the user to mark over the media screen view.
4. A simple data visualization application that includes both 2-D flat presentation and 3-D presentation in a viewport.
By working through such pragmatic example, you'll get the guidance and insights you need to enrich the user experience and create visually stunning applications. Book also features extensive code samples in Microsoft® Visual Basic® and Visual C#®.
About the Author
Billy Hollis is a nationally recognized expert on the Microsoft® .NET Framework. He is a Microsoft® Regional Director, Microsoft® Most Valuable Professional, and Microsoft® Software Legend. Billy has authored or coauthored eight books, including Professional VB.NET 2003. Bill operates .NET Masters, a company that develops custom applications, primarily for the healthcare industry. He is active in INETA and is a regular speaker at industry events such as TechEd and VSLive.
Table of Contents
Dedicated to; Introduction; The Road to ASP.NET 2.0; Classic ASP; ASP.NET 1.0 and 1.1; ASP.NET 2.0; A Word About the .NET Runtime; Using This Book; Who Is This Book For?; Organization of This Book; Getting Started; Finding Your Best Starting Point in This Book; Conventions and Features in This Book; System Requirements; Using Microsoft Access; Code Samples; Prerelease Software; Online Companion Content; Support for This Book; Acknowledgments; Chapter 1: Web Application Basics; 1.1 HTTP Requests; 1.2 HyperText Markup Language (HTML); 1.3 Dynamic Content; 1.4 Internet Information Services; 1.5 Classic ASP; 1.6 Web Development Issues; 1.7 ASP.NET; 1.8 Chapter 1 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 Pipeline; 2.5 Visual Studio and ASP.NET; 2.6 Conclusion; 2.7 Chapter 2 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 Conclusion; 3.5 Chapter 3 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 View State; 4.7 Conclusion; 4.8 Chapter 4 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 Conclusion; 5.6 Chapter 5 Quick Reference; Chapter 6: Control Potpourri; 6.1 Validation; 6.2 TreeView; 6.3 MultiView; 6.4 Conclusion; 6.5 Chapter 6 Quick Reference; 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 Conclusion; 7.6 Chapter 7 Quick Reference; Chapter 8: A Common Look and Feel; 8.1 A Common Look and Feel; 8.2 ASP.NET 2.0 Master Pages; 8.3 Themes; 8.4 Skins; 8.5 Conclusion; 8.6 Chapter 8 Quick Reference; Chapter 9: Configuration; 9.1 Windows Configuration; 9.2 .NET Configuration; 9.3 ASP.NET MMC Snap-in; 9.4 Conclusion; 9.5 Chapter 9 Quick Reference; Chapter 10: Logging In; 10.1 Web-Based Security; 10.2 Basic Forms Authentication; 10.3 ASP.NET Authentication Services; 10.4 Managing Users; 10.5 ASP.NET Login Controls; 10.6 Authorizing Users; 10.7 Conclusion; 10.8 Chapter 10 Quick Reference; Chapter 11: Databinding; 11.1 Representing Collections without Databinding; 11.2 Representing Collections with Databinding; 11.3 Simple Databinding; 11.4 Accessing Databases; 11.5 The .NET Database Story; 11.6 ASP.NET Data Sources; 11.7 Other Databound Controls; 11.8 Conclusion; 11.9 Chapter 11 Quick Reference; Chapter 12: Personalization; 12.1 Personalizing Web Visits; 12.2 Personalization in ASP.NET; 12.3 Using Personalization; 12.4 Conclusion; 12.5 Chapter 12 Quick Reference; Chapter 13: Session State; 13.1 Why Session State?; 13.2 ASP.NET and Session State; 13.3 Getting a Taste of Session State; 13.4 Session State and More Complex Data; 13.5 Configuring Session State; 13.6 Tracking Session State; 13.7 Other Session Configuration Settings; 13.8 The Wizard Control: Alternative to Session State; 13.9 Conclusion; 13.10 Chapter 13 Quick Reference; Chapter 14: Application Data Caching; 14.1 Making an Application that Benefits from Caching; 14.2 Using the Data Cache; 14.3 Managing the Cache; 14.4 Conclusion; 14.5 Chapter 14 Quick Reference; Chapter 15: Caching Output; 15.1 Caching Content; 15.2 Managing Cached Content; 15.3 Caching User Controls; 15.4 When Output Caching Makes Sense; 15.5 Conclusion; 15.6 Chapter 15 Quick Reference; Chapter 16: Diagnostics and Debugging; 16.1 Page Tracing; 16.2 Application Tracing; 16.3 Debugging with Visual Studio; 16.4 Error Pages; 16.5 Unhandled Exceptions; 16.6 Conclusion; 16.7 Chapter 16 Quick Reference; Chapter 17: The Application and HTTP Modules; 17.1 The Application: A Rendezvous Point; 17.2 Overriding HttpApplication; 17.3 HttpModules; 17.4 Global.asax versus HttpModules; 17.5 Conclusion; 17.6 Chapter 17 Quick Reference; Chapter 18: Custom Handlers; 18.1 Handlers; 18.2 Built-in Handlers; 18.3 IHttpHandler; 18.4 Implementing IHttpHandler; 18.5 Handlers and Session State; 18.6 Generic Handlers (ASHX Files); 18.7 Conclusion; 18.8 Chapter 18 Quick Reference; Chapter 19: Web Services; 19.1 Remoting; 19.2 Remoting Over the Web; 19.3 If You Couldnt Use ASP.NET...; 19.4 A Web Service in ASP.NET; 19.5 Consuming Web Services; 19.6 Asynchronous Execution; 19.7 Web Services in Visual Basic; 19.8 What Good Are Web Services?; 19.9 Other Features; 19.10 Conclusion; 19.11 Chaaaaaapter 19 Quick Reference; Chapter 20: Managing and Deploying Web Applications; 20.1 Visual Studio Projects; 20.2 Precompiling; 20.3 Conclusion; 20.4 Chapter 20 Quick Reference; George Shepherd;