Buying Options
ASP.NET 2.0 Cookbook, Second Edition
Print $54.95
Add to Cart
Print+Ebook $60.45
Add to Cart
Ebook $43.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £42.50
Add to Cart
What is this?

Product Editions

  1. ASP.NET 2.0 Cookbook, Second Edition - December 2005
  2. ASP.NET Cookbook - August 2004
Description
Completely revised for ASP.NET 2.0, this new edition of the best-selling ASP.NET Cookbook has everything you need to go from beginning to advanced Windows-based web site development using Microsoft's popular Visual Studio 2005 and ASP.NET 2.0 developer tools. Written for the impatient professional, ASP.NET 2.0 Cookbook contains more than 125 recipes for solving common and not-so-common problems you are likely to encounter when building ASP.NET-based web applications. As with the first edition, every solution is coded in both C# and Visual Basic 2005.
Full Description
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

View Full Table of Contents
Product Details
Title:
ASP.NET 2.0 Cookbook, Second Edition
By:
Michael A Kittel, Geoffrey T. LeBlond
Publisher:
O'Reilly Media
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
December 2005
Ebook Release:
February 2009
Pages:
1024
Print ISBN:
978-0-596-10064-3
| ISBN 10:
0-596-10064-7
Ebook ISBN:
978-0-596-10570-9
| ISBN 10:
0-596-10570-3
Customer Reviews
About the Authors
  1. Michael A Kittel

    Michael Kittel has nearly 30 years experience in the software industry. He has been working with Microsoft technologies for more than 10 years and with ASP.NET since the alpha release of 1.0. He has been the system architect and led the development of applications for Lexis-Nexis, Plow & Hearth, ReturnBuy, and many others. Michael has a Microsoft Certified Solutions Developer certification and is currently a senior consultant at Dominion Digital, Inc. (http://www.dominiondigital.com), a firm that specializes in helping companies envision and achieve maximum business value from investments.

    View Michael A Kittel's full profile page.

  2. Geoffrey T. LeBlond

    Geoffrey T. LeBlond is the co-author of "Using 1-2-3", the first computer book that sold over 1 million copies. Geoff is the author of numerous computer books, and was the developer of Oriel, an early scripting language for Microsoft Windows. More recently, Geoff has been focusing his attention on developing web applications using ASP and ASP.NET.

    View Geoffrey T. LeBlond's full profile page.

  • Book cover of ASP.NET 2.0 Cookbook