You are previewing Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional, Second Edition.
O'Reilly logo
Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional, Second Edition

Book Description

The most up-to-date and comprehensive introductory ASP.NET book you'll find on any shelf, Beginning ASP.NET 3.5 in C# 2008 guides you through Microsoft's latest technology for building dynamic web sites. This book will enable you to build dynamic web pages on the fly, and it assumes only the most basic knowledge of C#.

The book provides exhaustive coverage of ASP.NET, guiding you from your first steps right up to the most advanced techniques, such as querying databases from within a web page and tuning your site for optimal performance. Within these pages, you'll find tips for "best practices" and comprehensive discussions of key database and XML principles you need to know in order to be effective with ASP.NET. The book also emphasizes the invaluable coding techniques of object orientation and code behind, which will start you off on the track to building real-world web sites right from the beginning-rather than just faking it with simplified coding practices.

Table of Contents

  1. Copyright
  2. Dedication
  3. About the Author
  4. About the Technical Reviewer
  5. Acknowledgments
  6. Introduction
  7. Introducing .NET
    1. The .NET Framework
      1. The Evolution of Web Development
      2. The .NET Framework
      3. The Last Word
    2. The C# Language
      1. The .NET Languages
      2. C# Language Basics
      3. Variables and Data Types
      4. Variable Operations
      5. Object-Based Manipulation
      6. Conditional Logic
      7. Loops
      8. Methods
      9. The Last Word
    3. Types, Objects, and Namespaces
      1. The Basics About Classes
      2. Building a Basic Class
      3. Value Types and Reference Types
      4. Understanding Namespaces and Assemblies
      5. Advanced Class Programming
      6. The Last Word
  8. Developing ASP.NET Applications
    1. Visual Studio
      1. The Promise of Visual Studio
      2. Creating Websites
      3. Designing a Web Page
      4. The Anatomy of a Web Form
      5. Writing Code
      6. Visual Studio Debugging
      7. The Last Word
    2. Web Form Fundamentals
      1. The Anatomy of an ASP.NET Application
      2. Introducing Server Controls
      3. Improving the Currency Converter
      4. A Deeper Look at HTML Control Classes
      5. The Page Class
      6. Application Events
      7. ASP.NET Configuration
      8. The Last Word
    3. Web Controls
      1. Stepping Up to Web Controls
      2. Web Control Classes
      3. List Controls
      4. Table Controls
      5. Web Control Events and AutoPostBack
      6. A Simple Web Page
      7. The Last Word
    4. State Management
      1. The Problem of State
      2. View State
      3. Transferring Information Between Pages
      4. Cookies
      5. Session State
      6. Session State Configuration
      7. Application State
      8. An Overview of State Management Choices
      9. The Last Word
    5. Error Handling, Logging, and Tracing
      1. Common Errors
      2. Exception Handling
      3. Handling Exceptions
      4. Throwing Your Own Exceptions
      5. Logging Exceptions
      6. Error Pages
      7. Page Tracing
      8. The Last Word
    6. Deploying ASP.NET Applications
      1. ASP.NET Applications and the Web Server
      2. Internet Information Services (IIS)
      3. Managing Websites with IIS Manager
      4. Deploying a Simple Site
      5. Deploying with Visual Studio
      6. The Last Word
  9. Building Better Web Forms
    1. Validation
      1. Understanding Validation
      2. The Validation Controls
      3. The Last Word
    2. Rich Controls
      1. The Calendar
      2. The AdRotator
      3. Pages with Multiple Views
      4. The Last Word
    3. User Controls and Graphics
      1. User Controls
      2. Dynamic Graphics
      3. The Last Word
    4. Styles, Themes, and Master Pages
      1. Styles
      2. Themes
      3. Master Page Basics
      4. Advanced Master Pages
      5. The Last Word
    5. Website Navigation
      1. Site Maps
      2. The SiteMapPath Control
      3. The TreeView Control
      4. The Menu Control
      5. The Last Word
  10. Working with Data
    1. ADO.NET Fundamentals
      1. Understanding Data Management
      2. Configuring Your Database
      3. SQL Basics
      4. ADO.NET Basics
      5. Direct Data Access
      6. Disconnected Data Access
      7. The Last Word
    2. Data Binding
      1. Introducing Data Binding
      2. Single-Value Data Binding
      3. Repeated-Value Data Binding
      4. Data Source Controls
      5. The Last Word
    3. The Data Controls
      1. The GridView
      2. Formatting the GridView
      3. Selecting a GridView Row
      4. Editing with the GridView
      5. Sorting and Paging the GridView
      6. Using GridView Templates
      7. The DetailsView and FormView
      8. The Last Word
    4. Files and Streams
      1. Files and Web Applications
      2. File System Information
      3. Reading and Writing with Streams
      4. Allowing File Uploads
      5. The Last Word
    5. XML
      1. XML's Hidden Role in .NET
      2. XML Explained
      3. The XML Classes
      4. XML Validation
      5. XML Display and Transforms
      6. XML Data Binding
      7. The Last Word
  11. Website Security
    1. Security Fundamentals
      1. Determining Security Requirements
      2. The ASP.NET Security Model
      3. Forms Authentication
      4. Windows Authentication
      5. Impersonation
      6. Confidentiality with SSL
      7. The Last Word
    2. Membership
      1. The Membership Data Store
      2. The Security Controls
      3. Role-Based Security
      4. The Last Word
    3. Profiles
      1. Understanding Profiles
      2. Using the SqlProfileProvider
      3. The Last Word
  12. Advanced ASP.NET
    1. Component-Based Programming
      1. Why Use Components?
      2. Component Jargon
      3. Creating a Component
      4. Properties and State
      5. Data-Access Components
      6. The ObjectDataSource
      7. The Last Word
    2. Caching
      1. Understanding Caching
      2. Output Caching
      3. Data Caching
      4. Caching with Dependencies
      5. The Last Word
    3. ASP.NET AJAX
      1. Understanding Ajax
      2. Partial Refreshes
      3. Progress Notification
      4. Timed Refreshes
      5. The ASP.NET AJAX Control Toolkit
      6. The Last Word
  13. Index