ASP.NET 2.0 Cookbook. 125 Solutions in C# and Visual Basic for Web Developers. 2nd Edition - Helion
ISBN: 978-05-965-5339-5
stron: 1024, Format: ebook
Data wydania: 2005-12-16
Księgarnia: Helion
Cena książki: 199,00 zł
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.
Osoby które kupowały "ASP.NET 2.0 Cookbook. 125 Solutions in C# and Visual Basic for Web Developers. 2nd Edition", wybierały także:
- ASP .NET Core. Kurs video. Rozwijanie dodatkowych funkcjonalności Web API 89,00 zł, (26,70 zł -70%)
- ASP.NET Core. Kurs video. Tworzenie REST Web API 49,00 zł, (14,70 zł -70%)
- Gray Hat C#. Język C# w kontroli i łamaniu zabezpieczeń 57,74 zł, (17,90 zł -69%)
- ASP.NET Core 6. Kurs video. Rozwijaj aplikacje webowe z Entity Framework Core 178,97 zł, (62,64 zł -65%)
- PowerShell. Kurs video. Zarz 164,31 zł, (59,15 zł -64%)
Spis treści
ASP.NET 2.0 Cookbook. 125 Solutions in C# and Visual Basic for Web Developers. 2nd Edition eBook -- spis treści
- ASP.NET 2.0 Cookbook, 2nd Edition
- SPECIAL OFFER: Upgrade this ebook with OReilly
- Preface
- 1. What This Book Is About
- 2. Who This Book Is For
- 3. How This Book Is Organized
- 4. Topics Not Covered
- 5. Sample Source Code
- 6. Sample Database, Scripts, and Connection Strings
- 7. Conventions Used in This Book
- 8. Using Code Examples
- 9. Comments and Questions
- 10. Safari Enabled
- 11. Acknowledgments
- 1. Master Pages
- Introduction
- 1.1. Generating a Quick Master/Content Page Arrangement
- Problem
- Solution
- Discussion
- See Also
- 1.2. Extending a Master Pages Content to Include Content for Other Application Pages
- Problem
- Solution
- Discussion
- See Also
- 1.3. Changing Which Master Page Is Used Without Modifying All Affected Application Pages
- Problem
- Solution
- Discussion
- See Also
- 1.4. Setting the Master Page at Runtime
- Problem
- Solution
- Discussion
- See Also
- 2. Tabular Data
- Introduction
- 2.1. Selecting the Right Tabular Control
- Problem
- Solution
- Discussion
- 2.2. Generating a Quick-and-Dirty Tabular Display
- Problem
- Solution
- Discussion
- See Also
- 2.3. Enhancing the Output of a Tabular Display
- Problem
- Solution
- Discussion
- See Also
- 2.4. Displaying Data from an XML File
- Problem
- Solution
- Discussion
- See Also
- 2.5. Displaying an Array as a Group of Checkboxes
- Problem
- Solution
- Discussion
- See Also
- 2.6. Displaying Data from a Hashtable
- Problem
- Solution
- Discussion
- See Also
- 2.7. Adding Next/Previous Navigation to a DataGrid
- Problem
- Solution
- Discussion
- See Also
- 2.8. Adding First/Last Navigation to a DataGrid
- Problem
- Solution
- Discussion
- See Also
- 2.9. Adding Direct Page Navigation to a DataGrid
- Problem
- Solution
- Discussion
- See Also
- 2.10. Sorting Data in Ascending/Descending Order Within a DataGrid
- Problem
- Solution
- Discussion
- 2.11. Combining Sorting and Paging in a DataGrid
- Problem
- Solution
- Discussion
- See Also
- 2.12. Paging Through a Record-Heavy DataGrid
- Problem
- Solution
- Discussion
- See Also
- 2.13. Editing Data Within a DataGrid
- Problem
- Solution
- Discussion
- 2.14. Navigating and Sorting Within a GridView
- Problem
- Solution
- Discussion
- See Also
- 2.15. Updating a GridView Without Refreshing the Whole Page
- Problem
- Solution
- Discussion
- See Also
- 2.16. Editing Data in a GridView
- Problem
- Solution
- Discussion
- See Also
- 2.17. Inserting a Row Within a GridView
- Problem
- Solution
- Discussion
- 2.18. Formatting Columnar Data in a GridView
- Problem
- Solution
- Discussion
- See Also
- 2.19. Allowing Selection Anywhere Within a GridView
- Problem
- Solution
- Discussion
- 2.20. Adding a Delete Confirmation Pop-Up
- Problem
- Solution
- Discussion
- See Also
- 2.21. Displaying a Pop-Up Details Window
- Problem
- Solution
- Discussion
- 2.22. Adding a Totals Row to a GridView
- Problem
- Solution
- Discussion
- 3. Validation
- Introduction
- 3.1. Requiring That Data Be Entered in a Field
- Problem
- Solution
- Discussion
- See Also
- 3.2. Requiring Data to Be in a Range
- Problem
- Solution
- Discussion
- See Also
- 3.3. Requiring That Two Data Input Fields Match
- Problem
- Solution
- Discussion
- See Also
- 3.4. Requiring Data to Match a Predefined Pattern
- Problem
- Solution
- Discussion
- See Also
- 3.5. Requiring That a Drop-Down List Selection Be Made
- Problem
- Solution
- Discussion
- See Also
- 3.6. Requiring Data to Match a Database Entry
- Problem
- Solution
- Discussion
- See Also
- 3.7. Using Validation Groups to Support Login and New User Registration Within a Single Form
- Problem
- Solution
- Discussion
- See Also
- 3.8. Performing Validation Programmatically to Execute Your Own Application-Specific Logic
- Problem
- Solution
- Discussion
- 4. Forms
- Introduction
- 4.1. Setting the Default Button to Submit a Form
- Problem
- Solution
- Discussion
- See Also
- 4.2. Submitting a Form to a Different Page
- Problem
- Solution
- Discussion
- See Also
- 4.3. Simulating Multipage Forms Problem
- Problem
- Solution
- Discussion
- See Also
- 4.4. Setting the Initial Focus to a Specific Control Problem
- Problem
- Solution
- Discussion
- See Also
- 4.5. Setting the Focus to a Control with a Validation Error
- Problem
- Solution
- Discussion
- See Also
- 5. User Controls
- Introduction
- 5.1. Sharing a Page Header on Multiple Pages
- Problem
- Solution
- Discussion
- See Also
- 5.2. Creating a Customizable Navigation Bar
- Problem
- Solution
- Discussion
- See Also
- 5.3. Reusing Code-Behind Classes
- Problem
- Solution
- Discussion
- 5.4. Communicating Between User Controls
- Problem
- Solution
- Discussion
- See Also
- 5.5. Adding User Controls Dynamically
- Problem
- Solution
- Discussion
- See Also
- 6. Custom Controls
- Introduction
- 6.1. Combining HTML Controls in a Single Custom Control
- Problem
- Solution
- Discussion
- See Also
- 6.2. Creating a Custom Control with Attributes
- Problem
- Solution
- Discussion
- See Also
- 6.3. Creating a Custom Control with State
- Problem
- Solution
- Discussion
- See Also
- 6.4. Using the Control State with Custom Controls
- Problem
- Solution
- Discussion
- See Also
- 6.5. Customizing an ASP.NET TextBox Server Control
- Problem
- Solution
- Discussion
- See Also
- 7. Maintaining State
- Introduction
- 7.1. Maintaining Information Needed by All Users of an Application
- Problem
- Solution
- Discussion
- See Also
- 7.2. Maintaining Information About a User Throughout a Session
- Problem
- Solution
- Discussion
- See Also
- 7.3. Preserving Information Between Postbacks
- Problem
- Solution
- Discussion
- See Also
- 7.4. Preserving Information Across Multiple Requests for a Page
- Problem
- Solution
- Discussion
- See Also
- 8. Error Handling
- Introduction
- 8.1. Handling Errors at the Method Level
- Problem
- Solution
- Discussion
- Basic syntax of TryCatchFinally
- Guidelines for implementing
- Additional considerations
- See Also
- 8.2. Handling Errors at the Page Level
- Problem
- Solution
- Discussion
- See Also
- 8.3. Handling Errors at the Application Level
- Problem
- Solution
- Discussion
- See Also
- 8.4. Displaying User-Friendly Error Messages
- Problem
- Solution
- Discussion
- See Also
- 9. Security
- Introduction
- 9.1. Restricting Access to All Application Pages
- Problem
- Solution
- Discussion
- See Also
- 9.2. Restricting Access to Selected Application Pages
- Problem
- Solution
- Discussion
- See Also
- 9.3. Restricting Access to Application Pages by Role
- Problem
- Solution
- Discussion
- See Also
- 9.4. Using Windows Authentication
- Problem
- Solution
- Discussion
- See Also
- 9.5. Using Membership and Roles
- Problem
- Solution
- Discussion
- See Also
- 10. Profiles and Themes
- Introduction
- 10.1. Using Profiles
- Problem
- Solution
- Discussion
- See Also
- 10.2. Inheriting a Profile
- Problem
- Solution
- Discussion
- See Also
- 10.3. Using and Migrating Anonymous Profiles
- Problem
- Solution
- Discussion
- See Also
- 10.4. Managing User Profiles
- Problem
- Solution
- Discussion
- See Also
- 10.5. Using Themes
- Problem
- Solution
- Discussion
- See Also
- 10.6. User-Personalized Themes
- Problem
- Solution
- Discussion
- See Also
- 11. Web Parts
- Introduction
- 11.1. Using Server Controls and User Controls as Web Parts
- Problem
- Solution
- Discussion
- See Also
- 11.2. Creating a Reusable Web Parts Catalog
- Problem
- Solution
- Discussion
- See Also
- 11.3. Creating a Custom Web Part
- Problem
- Solution
- Discussion
- See Also
- 11.4. Communicating Between Web Parts
- Problem
- Solution
- Discussion
- See Also
- 11.5. Persisting Personalized Web Part Properties
- Problem
- Solution
- Discussion
- See Also
- 12. Configuration
- Introduction
- Configuration File Hierarchy
- Structure and Use of web.config
- Modifying web.config
- 12.1. Overriding Default HTTP Runtime Parameters in web.config
- Problem
- Solution
- Discussion
- See Also
- 12.2. Adding Custom Application Settings in web.config
- Problem
- Solution
- Discussion
- See Also
- 12.3. Displaying Custom Error Messages
- Problem
- Solution
- Discussion
- See Also
- 12.4. Maintaining Session State Across Multiple Web Servers
- Problem
- Solution
- Discussion
- See Also
- 12.5. Accessing Other web.config Configuration Elements
- Problem
- Solution
- Discussion
- 12.6. Adding Your Own Configuration Elements to web.config
- Problem
- Solution
- Discussion
- See Also
- 12.7. Encrypting web.config Sections
- Problem
- Solution
- Discussion
- See Also
- Introduction
- 13. Tracing and Debugging
- Introduction
- 13.1. Uncovering Page-Level Problems
- Problem
- Solution
- Discussion
- See Also
- 13.2. Uncovering Application-Wide Problems
- Problem
- Solution
- Discussion
- See Also
- 13.3. Pinpointing the Cause of an Exception
- Problem
- Solution
- Discussion
- See Also
- 13.4. Uncovering Problems Within Web Application Components
- Problem
- Solution
- Discussion
- See Also
- 13.5. Uncovering Problems Within Dual-Use Components
- Problem
- Solution
- Discussion
- See Also
- 13.6. Writing Trace Data to the Event Log with Controllable Levels
- Problem
- Solution
- Discussion
- See Also
- 13.7. Sending Trace Data via Email with Controllable Levels
- Problem
- Solution
- Discussion
- See Also
- 13.8. Using a Breakpoint to Stop Execution of an Application When a Condition Is Met
- Problem
- Solution
- Discussion
- See Also
- 14. Web Services
- Introduction
- 14.1. Creating a Web Service
- Problem
- Solution
- Discussion
- See Also
- 14.2. Consuming a Web Service
- Problem
- Solution
- Discussion
- See Also
- 14.3. Creating a Web Service That Returns a Custom Object
- Problem
- Solution
- Discussion
- See Also
- 14.4. Setting the URL of a Web Service at Runtime
- Problem
- Solution
- Discussion
- 15. Dynamic Images
- Introduction
- 15.1. Drawing Button Images on the Fly
- Problem
- Solution
- Discussion
- See Also
- 15.2. Creating Bar Charts on the Fly
- Problem
- Solution
- Discussion
- See Also
- 15.3. Displaying Images Stored in a Database
- Problem
- Solution
- Discussion
- See Also
- 15.4. Displaying Thumbnail Images
- Problem
- Solution
- Discussion
- See Also
- 16. Caching
- Introduction
- 16.1. Caching Pages
- Problem
- Solution
- Discussion
- See Also
- 16.2. Caching Pages Based on Query String Parameter Values
- Problem
- Solution
- Discussion
- See Also
- 16.3. Caching Pages Based on Browser Type and Version
- Problem
- Solution
- Discussion
- See Also
- 16.4. Caching Pages Based on Developer-Defined Custom Strings
- Problem
- Solution
- Discussion
- See Also
- 16.5. Caching Pages Based on Database Dependencies
- Problem
- Solution
- Discussion
- See Also
- 16.6. Caching User Controls
- Problem
- Solution
- Discussion
- See Also
- 16.7. Caching Application Data
- Problem
- Solution
- Discussion
- See Also
- 16.8. Caching Application Data Based on Database Dependencies
- Problem
- Solution
- Discussion
- See Also
- 16.9. Caching Data Sources
- Problem
- Solution
- Discussion
- See Also
- 17. Internationalization
- Introduction
- 17.1. Localizing Request/Response Encoding
- Problem
- Solution
- Discussion
- See Also
- 17.2. Providing Multiple Language Support
- Problem
- Solution
- Discussion
- See Also
- 17.3. Using Global Resources and Overriding Currency Formatting
- Problem
- Solution
- Discussion
- See Also
- 18. File Operations
- Introduction
- 18.1. Downloading a File from the Web Server
- Problem
- Solution
- Discussion
- See Also
- 18.2. Uploading a File to the Web Server
- Problem
- Solution
- Discussion
- See Also
- 18.3. Processing an Uploaded File Without Storing It on the Filesystem
- Problem
- Solution
- Discussion
- See Also
- 18.4. Storing the Contents of an Uploaded File in a Database
- Problem
- Solution
- Discussion
- See Also
- 19. Performance
- Introduction
- 19.1. Reducing Page Size by Selectively Disabling the ViewState
- Problem
- Solution
- Discussion
- See Also
- 19.2. Speeding Up String Concatenation with a StringBuilder
- Problem
- Solution
- Discussion
- See Also
- 19.3. Speeding Up Read-Only Data Access
- Problem
- Solution
- Discussion
- See Also
- 19.4. Speeding Up Data Access to a SQL Server Database Using the SQL Provider
- Problem
- Solution
- Discussion
- See Also
- 20. HTTP Handlers
- Introduction
- 20.1. Creating a Reusable Image Handler
- Problem
- Solution
- Discussion
- See Also
- 20.2. Creating a File Download Handler
- Problem
- Solution
- Discussion
- See Also
- 21. Assorted Tips
- Introduction
- 21.1. Accessing HTTP-Specific Information from Within a Class
- Problem
- Solution
- Discussion
- See Also
- 21.2. Executing External Applications
- Problem
- Solution
- Discussion
- See Also
- 21.3. Transforming XML to HTML
- Problem
- Solution
- Discussion
- See Also
- 21.4. Determining the User's Browser Type
- Problem
- Solution
- Discussion
- See Also
- 21.5. Dynamically Creating Browser-Specific Stylesheets
- Problem
- Solution
- Discussion
- See Also
- 21.6. Saving and Reusing HTML Output
- Problem
- Solution
- Discussion
- See Also
- 21.7. Sending Mail
- Problem
- Solution
- Discussion
- See Also
- 21.8. Dynamic Menus
- Problem
- Solution
- Discussion
- See Also
- 21.9. Adding Breadcrumbs
- Problem
- Solution
- Discussion
- See Also
- About the Authors
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OReilly