Book 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.
The recipes in this book, which run the gamut from simple coding techniques to more comprehensive development strategies, are presented in the popular Problem-Solution-Discussion format of the O'Reilly Cookbook series. As with the first edition, every solution is coded in both C# and Visual Basic 2005.
Among the additions and revisions to this new edition are:
- Three new chapters, including 25 new recipes for Master and Content pages, Personalization using Profiles and Themes, Custom Web Parts, and more
- New code for every solution, rewritten to take advantage of features and techniques new to ASP.NET 2.0 and available for download
The ASP.NET 2.0 Cookbook continues to provide the most comprehensive coverage you'll find anywhere of:
- Tabular controls, including the new GridView control
- Data validation, including the new ASP.NET 2.0 validation controls, as well as techniques for performing your own validation programmatically
- User and custom controls
- Error handling, performance tuning, and caching
Whether you're new to ASP.NET or an experienced Microsoft developer, with ASP.NET 2.0 Cookbook, deliverance from a long day (or night) at your computer could be just one recipe away.
Publisher resources
Table of contents
- ASP.NET 2.0 Cookbook, 2nd Edition
- Preface
- 1. Master Pages
-
2. Tabular Data
- Introduction
- 2.1. Selecting the Right Tabular Control
- 2.2. Generating a Quick-and-Dirty Tabular Display
- 2.3. Enhancing the Output of a Tabular Display
- 2.4. Displaying Data from an XML File
- 2.5. Displaying an Array as a Group of Checkboxes
- 2.6. Displaying Data from a Hashtable
- 2.7. Adding Next/Previous Navigation to a DataGrid
- 2.8. Adding First/Last Navigation to a DataGrid
- 2.9. Adding Direct Page Navigation to a DataGrid
- 2.10. Sorting Data in Ascending/Descending Order Within a DataGrid
- 2.11. Combining Sorting and Paging in a DataGrid
- 2.12. Paging Through a Record-Heavy DataGrid
- 2.13. Editing Data Within a DataGrid
- 2.14. Navigating and Sorting Within a GridView
- 2.15. Updating a GridView Without Refreshing the Whole Page
- 2.16. Editing Data in a GridView
- 2.17. Inserting a Row Within a GridView
- 2.18. Formatting Columnar Data in a GridView
- 2.19. Allowing Selection Anywhere Within a GridView
- 2.20. Adding a Delete Confirmation Pop-Up
- 2.21. Displaying a Pop-Up Details Window
- 2.22. Adding a Totals Row to a GridView
-
3. Validation
- Introduction
- 3.1. Requiring That Data Be Entered in a Field
- 3.2. Requiring Data to Be in a Range
- 3.3. Requiring That Two Data Input Fields Match
- 3.4. Requiring Data to Match a Predefined Pattern
- 3.5. Requiring That a Drop-Down List Selection Be Made
- 3.6. Requiring Data to Match a Database Entry
- 3.7. Using Validation Groups to Support Login and New User Registration Within a Single Form
- 3.8. Performing Validation Programmatically to Execute Your Own Application-Specific Logic
- 4. Forms
- 5. User Controls
- 6. Custom Controls
- 7. Maintaining State
- 8. Error Handling
- 9. Security
- 10. Profiles and Themes
- 11. Web Parts
-
12. Configuration
- Introduction
- 12.1. Overriding Default HTTP Runtime Parameters in web.config
- 12.2. Adding Custom Application Settings in web.config
- 12.3. Displaying Custom Error Messages
- 12.4. Maintaining Session State Across Multiple Web Servers
- 12.5. Accessing Other web.config Configuration Elements
- 12.6. Adding Your Own Configuration Elements to web.config
- 12.7. Encrypting web.config Sections
-
13. Tracing and Debugging
- Introduction
- 13.1. Uncovering Page-Level Problems
- 13.2. Uncovering Application-Wide Problems
- 13.3. Pinpointing the Cause of an Exception
- 13.4. Uncovering Problems Within Web Application Components
- 13.5. Uncovering Problems Within Dual-Use Components
- 13.6. Writing Trace Data to the Event Log with Controllable Levels
- 13.7. Sending Trace Data via Email with Controllable Levels
- 13.8. Using a Breakpoint to Stop Execution of an Application When a Condition Is Met
- 14. Web Services
- 15. Dynamic Images
-
16. Caching
- Introduction
- 16.1. Caching Pages
- 16.2. Caching Pages Based on Query String Parameter Values
- 16.3. Caching Pages Based on Browser Type and Version
- 16.4. Caching Pages Based on Developer-Defined Custom Strings
- 16.5. Caching Pages Based on Database Dependencies
- 16.6. Caching User Controls
- 16.7. Caching Application Data
- 16.8. Caching Application Data Based on Database Dependencies
- 16.9. Caching Data Sources
- 17. Internationalization
- 18. File Operations
- 19. Performance
- 20. HTTP Handlers
-
21. Assorted Tips
- Introduction
- 21.1. Accessing HTTP-Specific Information from Within a Class
- 21.2. Executing External Applications
- 21.3. Transforming XML to HTML
- 21.4. Determining the Userâs Browser Type
- 21.5. Dynamically Creating Browser-Specific Stylesheets
- 21.6. Saving and Reusing HTML Output
- 21.7. Sending Mail
- 21.8. Dynamic Menus
- 21.9. Adding Breadcrumbs
- About the Authors
- Colophon
- Copyright
Product information
- Title: ASP.NET 2.0 Cookbook, 2nd Edition
- Author(s):
- Release date: December 2005
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596553395
You might also like
book
ASP.NET 2.0 Illustrated
“This book is a phenomenal start for someone new to ASP.NET, as well as a complete …
book
Learning ASP.NET 3.5, 2nd Edition
With this book, you will learn how to create engaging and interactive web applications using the …
book
Essential ASP.NET 2.0
"No one knows ASP.NET like Fritz Onion. And no one knows .NET security like Keith Brown. …
book
ASP.NET 4.0 in Practice
ASP.NET 4.0 in Practice contains over 100 real world techniques distilled from the experience of a …