Essential ASP.NET with Examples in C#

Book description

Praise for Essential ASP.NET with Examples in C#

“Essential ASP.NET with Examples in C# is so good that it’s the only ASP.NET book on my working bookshelf.”

         —LARRY O’BRIEN, .NET Watch columnist, SD Times

“Essential ASP.NET is positioned to become the seminal book on the most important advancement to Web development in years.”

         —JUSTIN BURTCH, software engineer

“Fritz’s explanations are clear and concise without being patronizing; his examples are succinct without being trivial. I can now say that after reading Fritz’s book, and trying a few things out, I feel that I ‘know’ ASP.NET. Reading his book has been a very helpful experience.”

         —RICHARD GRIMES, .NET author and consultant

“Like many of the teachers who have worked with DevelopMentor, Fritz has a great ability to make complex concepts very easy to understand. The explanations go deep enough that I’ve had several ‘a ha’ moments while finally understanding how some features really worked.”

         —SCOTT SEELY, Microsoft Corporation

“This is an excellent book! It has a straightforward style and is comprehensive.”

         —DARYL RICHTER, software architect

“This book greatly improves the understanding of ASP.NET. The text is concise and examples are well written. The signal-to-noise ratio of this book is very high. I am sure it will be a great value to its readers.”

         —AMIT KALANI, software programmer/analyst

“Fritz Onion’s Essential ASP.NET is one of the best ASP.NET books I have read.”

         —JAMES EDELEN, Microsoft MVP

“It is deep enough that everyone is assured of learning something, no matter how experienced you may already be.”

         —PAUL WILSON, Software Architect, WilsonDotNet.com

“The book is a winner, and a must-have for experienced developers who want to augment their knowledge of ASP.NET by being aware of what goes on under the hood.”

         —JASON SALAS, MBA, MCP, and Web Development Manager for Pacific Telestations, Inc.

“If you are looking for an ASP.NET book that can help take you to the next level, Essential ASP.NET with Examples in C# is your first class ticket.”

         —ROBBE MORRIS, Senior Software Engineer, EggHeadCafe.com

"This well-conceived and well-written book has extensive knowledge and priceless experience overflowing from its pages. It captures the true essence of ASP.NET and walks the reader to a high level of technical and architectural skill."
--J. Fred Maples, Director of Software Engineering, NASDAQ.com

Essential ASP.NET with Examples in C# is the C# programmer's definitive reference for ASP.NET through version 1.1. It provides experienced programmers with the information needed to fully understand the technology, and is a clear guide to using ASP.NET to build robust and well architected Web applications.

This book begins with a discussion of the rationale behind the design of ASP.NET and an introduction to how it builds on top of the .NET framework. Subsequent chapters explore the host of new features in ASP.NET, including the server-side compilation model, code-behind classes, server-side controls, form validation, the data binding model, and custom control development. Throughout the book, working examples illustrate best practices for building Web-based applications in C#.

Among the topics explored in depth are:

  • ASP.NET architecture

  • Web forms

  • Configuration

  • HTTP pipeline

  • Diagnostics and error handling

  • Validation

  • Data binding

  • Custom controls

  • Caching

  • State management

  • Security

  • Essential ASP.NET with Examples in C# provides readers with the know-how needed to build more powerful, better architected Web applications with ASP.NET.



    Table of contents

    1. Copyright
    2. Microsoft .NET Development Series
    3. Titles in the Series
    4. Figures
    5. Tables
    6. Foreword
    7. Preface
      1. C# versus VB.NET
      2. Sample Code, Web Site, Feedback
      3. Prerequisites
      4. Organization of This Book
      5. Acknowledgments
    8. 1. Architecture
      1. 1.1. Fundamentals
      2. 1.2. ASP 4.0
        1. 1.2.1. Compilation versus Interpretation
      3. 1.3. System.Web.UI.Page
      4. 1.4. Code-Behind
        1. 1.4.1. Event Handling
      5. 1.5. Shadow Copying
      6. 1.6. Directives
      7. 1.7. The New Intrinsics
      8. SUMMARY
    9. 2. Web Forms
      1. 2.1. Server-Side Controls
      2. 2.2. ViewState
      3. 2.3. Events
      4. 2.4. A Day in the Life of a Page
      5. 2.5. Web Forms and Code-Behind
      6. 2.6. Root Path Reference Syntax
      7. 2.7. HtmlControls
      8. 2.8. WebControls
        1. 2.8.1. List Controls
      9. 2.9. WebControls versus HtmlControls
      10. 2.10. Building Web Forms with Visual Studio .NET
      11. SUMMARY
    10. 3. Configuration
      1. 3.1. web.config
        1. 3.1.1. Configuration Hierarchy
        2. 3.1.2. Location Element
        3. 3.1.3. Element Placement
        4. 3.1.4. Impact of Configuration Changes
        5. 3.1.5. IIS and web.config
      2. 3.2. Configuration Data
      3. 3.3. Process Model
        1. 3.3.1. Accessing Process Information
        2. 3.3.2. IIS 6.0 Process Model Changes
      4. 3.4. Additional Settings
      5. 3.5. Reading Configuration Information
      6. 3.6. Building a Custom Configuration Section Handler
        1. 3.6.1. Using the NameValueFileSectionHandler
      7. SUMMARY
    11. 4. HTTP Pipeline
      1. 4.1. A Day in the Life of a Request
        1. 4.1.1. Ten Thousand–Foot View of Request Processing
        2. 4.1.2. Inside the Pipeline
      2. 4.2. Context
      3. 4.3. Applications
        1. 4.3.1. Application Events
        2. 4.3.2. Declarative Object Creation
      4. 4.4. Custom Handlers
        1. 4.4.1. Custom Handlers for File Processing
        2. 4.4.2. .ashx
        3. 4.4.3. Handler Pooling
        4. 4.4.4. Custom Handler Factories
      5. 4.5. Custom Modules
        1. 4.5.1. Modules as Filters
        2. 4.5.2. Module Pooling
        3. 4.5.3. Modules versus global.asax
      6. 4.6. Threading in the Pipeline
        1. 4.6.1. Asynchronous Handlers
      7. SUMMARY
    12. 5. Diagnostics and Error Handling
      1. 5.1. Diagnostics in ASP.NET
        1. 5.1.1. Page Tracing
        2. 5.1.2. Writing Trace Messages
        3. 5.1.3. Application-Level Tracing
        4. 5.1.4. Performance Monitor Counters
      2. 5.2. Debugging
      3. 5.3. Error Handling
        1. 5.3.1. Unhandled Exceptions
      4. SUMMARY
    13. 6. Validation
      1. 6.1. Form Validation
        1. 6.1.1. Client-Side Validation
        2. 6.1.2. Server-Side Validation
        3. 6.1.3. Validation Observations
      2. 6.2. Validation Control Architecture
        1. 6.2.1. Page Validation
        2. 6.2.2. Client-Side Validation
      3. 6.3. Validation Controls
      4. SUMMARY
    14. 7. Data Binding
      1. 7.1. Fundamentals
      2. 7.2. Data Binding Controls
      3. 7.3. Binding to Database Sources
        1. 7.3.1. IDataReader Binding
        2. 7.3.2. DataSet Binding
        3. 7.3.3. DataSet versus DataReader for Data Binding
      4. 7.4. DataGrid
        1. 7.4.1. DataGrid Paging
        2. 7.4.2. DataGrid Sorting
        3. 7.4.3. DataGrid Editing
      5. 7.5. Templates
        1. 7.5.1. Data Binding Evaluation Syntax
        2. 7.5.2. DataBinder
        3. 7.5.3. Templated Controls
        4. 7.5.4. Repeater
        5. 7.5.5. DataList
      6. SUMMARY
    15. 8. Custom Controls
      1. 8.1. Fundamentals
        1. 8.1.1. Writing Custom Controls
        2. 8.1.2. Using Custom Controls
        3. 8.1.3. System.Web.UI.Control
        4. 8.1.4. HtmlTextWriter
        5. 8.1.5. Browser Independence
        6. 8.1.6. Subproperties
        7. 8.1.7. Inner Content
        8. 8.1.8. Generating Client-Side Script
        9. 8.1.9. System.Web.UI.WebControls.WebControl
      2. 8.2. State Management
        1. 8.2.1. ViewState
        2. 8.2.2. Explicit Post-Back Data Handling
      3. 8.3. Composite Controls
        1. 8.3.1. Creating Child Controls
        2. 8.3.2. Custom Events
      4. 8.4. User Controls
      5. 8.5. Validation and Data Binding
        1. 8.5.1. Supporting Validation
        2. 8.5.2. Data-Bound Controls
        3. 8.5.3. Implementing a Data-Bound Control
      6. 8.6. Designer Integration
        1. 8.6.1. Properties and Appearance
        2. 8.6.2. Type Converters
        3. 8.6.3. Property Editors
        4. 8.6.4. Designers
      7. SUMMARY
    16. 9. Caching
      1. 9.1. Caching Opportunities in ASP.NET
      2. 9.2. Output Caching
        1. 9.2.1. Output Caching Location
        2. 9.2.2. Caching Multiple Versions of a Page
        3. 9.2.3. Page Fragment Caching
        4. 9.2.4. Output Caching Considerations and Guidelines
      3. 9.3. Data Caching
        1. 9.3.1. Cache Entry Attributes
          1. 9.3.1.1. Cache Object Lifetime
        2. 9.3.2. Cache Object Removal
        3. 9.3.3. Data Cache Considerations and Guidelines
      4. SUMMARY
    17. 10. State Management
      1. 10.1. Types of State
      2. 10.2. Application State
      3. 10.3. Session State
        1. 10.3.1. Session Key Management
        2. 10.3.2. Storing Session State out of Process
      4. 10.4. Cookie State
      5. 10.5. View State
      6. SUMMARY
    18. 11. Security
      1. 11.1. Web Security
        1. 11.1.1. Server Authentication
        2. 11.1.2. Client Authentication
      2. 11.2. Security in ASP.NET
        1. 11.2.1. Client Authentication and Authorization
        2. 11.2.2. Forms Authentication
        3. 11.2.3. Authentication Cookies in Web Farms
        4. 11.2.4. Optional Authentication
        5. 11.2.5. Password Storage
        6. 11.2.6. Salted Hashes
        7. 11.2.7. Role-Based Authentication
      3. 11.3. System Identity in ASP.NET
      4. SUMMARY

    Product information

    • Title: Essential ASP.NET with Examples in C#
    • Author(s): Fritz Onion
    • Release date: February 2003
    • Publisher(s): Addison-Wesley Professional
    • ISBN: None