Books & Videos

Table of Contents

  1. Chapter 1 Master Pages

    1. Introduction

    2. Generating a Quick Master/Content Page Arrangement

    3. Extending a Master Page's Content to Include Content for Other Application Pages

    4. Changing Which Master Page Is Used Without Modifying All Affected Application Pages

    5. Setting the Master Page at Runtime

  2. Chapter 2 Tabular Data

    1. Introduction

    2. Selecting the Right Tabular Control

    3. Generating a Quick-and-Dirty Tabular Display

    4. Enhancing the Output of a Tabular Display

    5. Displaying Data from an XML File

    6. Displaying an Array as a Group of Checkboxes

    7. Displaying Data from a Hashtable

    8. Adding Next/Previous Navigation to a DataGrid

    9. Adding First/Last Navigation to a DataGrid

    10. Adding Direct Page Navigation to a DataGrid

    11. Sorting Data in Ascending/Descending Order Within a DataGrid

    12. Combining Sorting and Paging in a DataGrid

    13. Paging Through a Record-Heavy DataGrid

    14. Editing Data Within a DataGrid

    15. Navigating and Sorting Within a GridView

    16. Updating a GridView Without Refreshing the Whole Page

    17. Editing Data in a GridView

    18. Inserting a Row Within a GridView

    19. Formatting Columnar Data in a GridView

    20. Allowing Selection Anywhere Within a GridView

    21. Adding a Delete Confirmation Pop-Up

    22. Displaying a Pop-Up Details Window

    23. Adding a Totals Row to a GridView

  3. Chapter 3 Validation

    1. Introduction

    2. Requiring That Data Be Entered in a Field

    3. Requiring Data to Be in a Range

    4. Requiring That Two Data Input Fields Match

    5. Requiring Data to Match a Predefined Pattern

    6. Requiring That a Drop-Down List Selection Be Made

    7. Requiring Data to Match a Database Entry

    8. Using Validation Groups to Support Login and New User Registration Within a Single Form

    9. Performing Validation Programmatically to Execute Your Own Application-Specific Logic

  4. Chapter 4 Forms

    1. Introduction

    2. Setting the Default Button to Submit a Form

    3. Submitting a Form to a Different Page

    4. Simulating Multipage Forms Problem

    5. Setting the Initial Focus to a Specific Control Problem

    6. Setting the Focus to a Control with a Validation Error

  5. Chapter 5 User Controls

    1. Introduction

    2. Sharing a Page Header on Multiple Pages

    3. Creating a Customizable Navigation Bar

    4. Reusing Code-Behind Classes

    5. Communicating Between User Controls

    6. Adding User Controls Dynamically

  6. Chapter 6 Custom Controls

    1. Introduction

    2. Combining HTML Controls in a Single Custom Control

    3. Creating a Custom Control with Attributes

    4. Creating a Custom Control with State

    5. Using the Control State with Custom Controls

    6. Customizing an ASP.NET TextBox Server Control

  7. Chapter 7 Maintaining State

    1. Introduction

    2. Maintaining Information Needed by All Users of an Application

    3. Maintaining Information About a User Throughout a Session

    4. Preserving Information Between Postbacks

    5. Preserving Information Across Multiple Requests for a Page

  8. Chapter 8 Error Handling

    1. Introduction

    2. Handling Errors at the Method Level

    3. Handling Errors at the Page Level

    4. Handling Errors at the Application Level

    5. Displaying User-Friendly Error Messages

  9. Chapter 9 Security

    1. Introduction

    2. Restricting Access to All Application Pages

    3. Restricting Access to Selected Application Pages

    4. Restricting Access to Application Pages by Role

    5. Using Windows Authentication

    6. Using Membership and Roles

  10. Chapter 10 Profiles and Themes

    1. Introduction

    2. Using Profiles

    3. Inheriting a Profile

    4. Using and Migrating Anonymous Profiles

    5. Managing User Profiles

    6. Using Themes

    7. User-Personalized Themes

  11. Chapter 11 Web Parts

    1. Introduction

    2. Using Server Controls and User Controls as Web Parts

    3. Creating a Reusable Web Parts Catalog

    4. Creating a Custom Web Part

    5. Communicating Between Web Parts

    6. Persisting Personalized Web Part Properties

  12. Chapter 12 Configuration

    1. Introduction

    2. Overriding Default HTTP Runtime Parameters in web.config

    3. Adding Custom Application Settings in web.config

    4. Displaying Custom Error Messages

    5. Maintaining Session State Across Multiple Web Servers

    6. Accessing Other web.config Configuration Elements

    7. Adding Your Own Configuration Elements to web.config

    8. Encrypting web.config Sections

  13. Chapter 13 Tracing and Debugging

    1. Introduction

    2. Uncovering Page-Level Problems

    3. Uncovering Application-Wide Problems

    4. Pinpointing the Cause of an Exception

    5. Uncovering Problems Within Web Application Components

    6. Uncovering Problems Within Dual-Use Components

    7. Writing Trace Data to the Event Log with Controllable Levels

    8. Sending Trace Data via Email with Controllable Levels

    9. Using a Breakpoint to Stop Execution of an Application When a Condition Is Met

  14. Chapter 14 Web Services

    1. Introduction

    2. Creating a Web Service

    3. Consuming a Web Service

    4. Creating a Web Service That Returns a Custom Object

    5. Setting the URL of a Web Service at Runtime

  15. Chapter 15 Dynamic Images

    1. Introduction

    2. Drawing Button Images on the Fly

    3. Creating Bar Charts on the Fly

    4. Displaying Images Stored in a Database

    5. Displaying Thumbnail Images

  16. Chapter 16 Caching

    1. Introduction

    2. Caching Pages

    3. Caching Pages Based on Query String Parameter Values

    4. Caching Pages Based on Browser Type and Version

    5. Caching Pages Based on Developer-Defined Custom Strings

    6. Caching Pages Based on Database Dependencies

    7. Caching User Controls

    8. Caching Application Data

    9. Caching Application Data Based on Database Dependencies

    10. Caching Data Sources

  17. Chapter 17 Internationalization

    1. Introduction

    2. Localizing Request/Response Encoding

    3. Providing Multiple Language Support

    4. Using Global Resources and Overriding Currency Formatting

  18. Chapter 18 File Operations

    1. Introduction

    2. Downloading a File from the Web Server

    3. Uploading a File to the Web Server

    4. Processing an Uploaded File Without Storing It on the Filesystem

    5. Storing the Contents of an Uploaded File in a Database

  19. Chapter 19 Performance

    1. Introduction

    2. Reducing Page Size by Selectively Disabling the ViewState

    3. Speeding Up String Concatenation with a StringBuilder

    4. Speeding Up Read-Only Data Access

    5. Speeding Up Data Access to a SQL Server Database Using the SQL Provider

  20. Chapter 20 HTTP Handlers

    1. Introduction

    2. Creating a Reusable Image Handler

    3. Creating a File Download Handler

  21. Chapter 21 Assorted Tips

    1. Introduction

    2. Accessing HTTP-Specific Information from Within a Class

    3. Executing External Applications

    4. Transforming XML to HTML

    5. Determining the User's Browser Type

    6. Dynamically Creating Browser-Specific Stylesheets

    7. Saving and Reusing HTML Output

    8. Sending Mail

    9. Dynamic Menus

    10. Adding Breadcrumbs

  1. Colophon