ASP.NET 1.1 Insider Solutions

Published by Sams, ISBN: 0-672-32674-4

 

Contents at a Glance

Part I - Web Form User Interfaces

·          Chapter 1 - Web Forms Tips and Tricks

·          Chapter 2 - Cross-Page Posting

·          Chapter 3 - Loading Progress and Status Displays

·          Chapter 4 - Working with Nested List Controls

Part II Reusability

·          Chapter 5 - Creating Reusable Content

·          Chapter 6 - Client-Side Script Integration

·          Chapter 7 - Design Issues for User Controls

·          Chapter 8 - Building Adaptive Controls

·          Chapter 9 - Page Templates

Part III Data Techniques

·          Chapter 10 - Relational Data-Handling Techniques

·          Chapter 11 - Working with XML Data

Part IV Hosting and Security

·          Chapter 12 - Side-by-Side Execution in ASPNET

·          Chapter 13 - Taking Advantage of Forms Authentication

·          Chapter 14 - Customizing Security

 

Table of Contents

Chapter 1 - Web Forms Tips and Tricks

·          Getting More from ASPNET Validation Controls

·          Validating a RadioButtonList Control

·          Validating a CheckBoxList Control

·          Validating Nonstandard Control Values

·          Using List and Validation Controls in a DataGrid Control

·          Taking Control of Content Layout in a DataGrid Control

·          Controlling the Width of Columns in a DataGrid Control

·          Using Multiple Edit Controls in a DataGrid Control Column

·          Controlling the Width of Edit Controls in a DataGrid Control

·          Providing Scrollable Content in a DataGrid Control

·          Loading Controls Dynamically at Runtime

·          The ASPNET Control Tree

·          Creating a DataGrid Control Dynamically at Runtime

·          Loading User Controls Dynamically at Runtime

·          Summary

Chapter 2 - Cross-Page Posting

·          Techniques for Passing Values Between Pages

·          Accessing Request Values in Another Page

·          Changing the action Attribute of a Form

·          Redirecting Postbacks to the Target Page

·          Client-Side Versus Server-Side Redirection

·          Exposing Values to Another Page via References

·          The Event Handlers That Call the ServerTransfer Method

·          The Public Properties in the Main Page

·          The Target Page for the ServerTransfer Method

·          Changing the Method and Clearing the Request Collections

·          The ServerExecute Method

·          Capturing Output from the ServerExecute Method

·          The Target Page for the ServerExecute Method

·          Summary

Chapter 3 - Loading Progress and Status Displays

·          Displaying a “Please Wait” Page

·          A Simple “Please Wait” Example

·          Displaying a Progress Bar Graphic

·          The Progress Bar Animated Graphic Files

·          Displaying the Progress Bar Graphic

·          Implementing a Staged Page Load Process

·          The Steps in Implementing a Staged Page Load Process

·          Status Information in ASPNET and the XMLHTTP Object

·          The Staged Process Operation Page

·          The Staged Process Main Page in the Staged Loading Example

·          Summary

Chapter 4 - Working with Nested List Controls

·          Displaying Related Data in Nested DataGrid Controls

·          Declarative Nested Binding to a DataSet Instance

·          Filling Nested DataGrid Controls with a DataSet Instance

·          Declarative Nested Binding to a Custom Function

·          Filling Nested DataGrid Controls from a DataReader Instance

·          A Master/Detail Display with DataList and DataGrid Controls

·          Declaring the DataList and DataGrid Controls

·          Populating the DataList Control

·          Populating the DataGrid Control

·          Selecting a Row in the DataList Control

·          Editing a Row in the DataGrid Control

·          Updating the Original Data in the Database

·          Summary

Chapter 5 - Creating Reusable Content

·          Techniques for Creating Reusable Content

·          Server-Side Include Files

·          ASPNET User Controls

·          Custom Master Page and Templating Techniques

·          ASPNET Server Controls Built As NET Assemblies

·          Using COM or COM+ Components via COM Interop

·          Building a ComboBox User Control

·          Design Considerations

·          The HTML for a Drop-Down Combo Box

·          The Structure and Implementation of the ComboBox User Control

·          Outputting the Appropriate HTML

·          The ShowMembers Method

·          Public Property Accessor Declarations

·          The Property Accessors for the ComboBox User Control

·          The Page_Load Event Handler for the ComboBox Control

·          Using the ComboBox Control

·          Populating the ComboBox Controls from an ArrayList Instance

·          Displaying the Members of the ComboBox User Control

·          Displaying Details of the Selected Item

·          Setting the Properties of the ComboBox User Control

·          Populating the ComboBox Control

·          Summary

Chapter 6 - Client-Side Script Integration

·          Client-Side Interaction on the Web

·          Client-Side Scripting in the Browser

·          CSS2 and Dynamic HTML

·          Selecting Your Target

·          Ver sion 6 Browser-Compatible Code Techniques

·          The Client-Side Code in the ComboBox User Control

·          Useful Client-Side Scripting Techniques

·          Buttons, Grids, and Client-Side Script

·          Detecting and Trapping Keypress Events

·          Creating a MaskedEdit Control

·          Using the MaskedEdit Control

·          Creating a One-Click Button

·          Summary

Chapter 7 - Design Issues for User Controls

·          The Effect of User Controls on Design and Implementation

·          Converting the MaskedEdit Control Page to a User Control

·          Adding Validation Controls to the MaskedEdit Control

·          Building a SpinBox User Control

·          The User Interface Declaration for the SpinBox Control

·          The Private and Public Members of the Control

·          The Server-Side Code Within the SpinBox Control

·          Integrating Client-Side Script Dialogs

·          How the Client Dialogs Example Works

·          The clientdialog.ascx User Control

·          Browser-Adaptive Script Dialogs

·          How the Adaptive Client Dialogs Example Works

·          Integrating Internet Explorer Dialog Windows

·          How the Modal Dialog Window Example Works

·          The Internet Explorer showModalDialog Method

·          Browser-Adaptive Dialog Windows

·          How the Browser-Adaptive Dialog Window Example Works

·          Summary

Chapter 8 - Building Adaptive Controls

·          The Advantages of Server Controls

·          The Basics of Building Server Controls

·          The Process of Building a Server Control

·          The Life Cycle of ASPNET Controls

·          The Life Cycle of a Server Control

·          Creating a Class for a Server Control

·          Choosing and Extending a Base Class

·          Building a MaskedEdit Server Control

·          The MaskedEdit Control Class File

·          Compiling and Testing the MaskedEdit Control

·          Building a SpinBox Server Control

·          The Standard SpinBox Control Class File

·          Using an Adaptive SpinBox Control

·          Making the SpinBox Control Adaptive

·          Coping with Older and Nonstandard Browsers

·          Adaptability Changes to the SpinBox Control Class

·          Testing and Using an Adaptive SpinBox Control

·          Installing a SpinBox Control in the GAC

·          Changes to the SpinBox Control Class File for GAC Installation

·          Compiling the SpinBox Control Class File

·          Installing the SpinBox Assembly into the GAC

·          Testing the GAC-Installed Control

·          Summary

Chapter 9 - Page Templates

·          Designing for Consistency

·          Templating Solutions

·          A Simple Layout Server Control

·          Custom Layout Control Output

·          Creating Content from a Custom Control

·          Creating a Custom Layout Control

·          A Server Control That Uses Templates

·          Creating a Templated Server Control

·          Creating Default Content for Templates

·          Creating Dynamic Regions for Page Content

·          Using a Custom Page Class for a Page Template

·          Creating the Content and ContentPlaceHolder Controls

·          Creating a Custom Page Class

·          Creating a Master Page

·          Using a Custom Page Class

·          Using Custom Controls in Visual Studio NET

·          Summary

Chapter 10 - Relational Data-Handling Techniques

·          Using Parameters with SQL Statements and Stored Procedures

·          Using Submitted Values in a SQL Statement

·          Ordering of Stored Procedures and Query Parameters

·          Using Default Values in a Stored Procedure

·          Filling a DataSet Instance With and Without a Schema

·          Loading the Schema for a DataSet Instance

·          The Sample Page for Filling a DataSet Instance

·          Writing Provider-Independent Data Access Code

·          Dynamically Instantiating a NET Framework Class

·          The Code in the Provider-Independent Data Access Sample Page

·          Updating Multiple Rows by Using Changed Events

·          The Edit and Cancel Buttons

·          Populating the DataGrid Control

·          Handling the ItemDataBound Event

·          Handling the Changed Events

·          Updating the Source Data

·          Creating the Client-Side Script to Highlight a Control

·          Summary

Chapter 11 - Working with XML Data

·          The Role of XML in ASPNET

·          XML API Pros and Cons

·          The Forward-Only API: XmlTextReader

·          The DOM API: XmlDocument

·          The Cursor-Style API: XPathNavigator

·          The XML Serialization API: XmlSerializer

·          Combining the XmlTextReader and XmlTextWriter Classes

·          Parsing XML Strings

·          Accessing XML Resources by Using the XmlResolver Class

·          XmlResolver, Evidence, and XslTransform

·          Searching, Filtering, and Sorting XML Data

·          Searching and Filtering XML Data

·          Sorting XML Data

·          Creating a Reusable XML Validation Class

·          Converting Relational Data to XML

·          Customizing XML by Using the DataSet Class

·          Adding CDATA Sections into XML Documents

·          Simplifying Configuration by Using XML

·          Accessing Configuration Settings by Using XPathNavigator

·          Using XML Serialization

·          Summary

Chapter 12 - Side-by-Side Execution in ASPNET

·          How Version 11 of the NET Framework Is Distributed

·          How Installing a New Version of the NET Framework Affects Existing Applications

·          Configuration Settings in machine.config

·          The ASPNET State Service and SQL Server State Service

·          The ASPNET Process Account

·          Windows Performance Counters

·          Running Version 1.0 Applications on Version 1.1 of the NET Framework

·          Running Version 1.1 Applications on Version 1.0

·          How ASPNET Selects the Runtime Version

·          How to Specify the ASPNET Version for Individual Applications

·          Installing ASPNET Without Updating Script Mappings

·          Using the aspnet_regiis.exe Tool to Configure Runtime Versions

·          ASPNET and IIS 60 on Windows Server 2003

·          IIS 60 Web Service Extensions

·          IIS 60 Application Pools

·          Summary

Chapter 13 - Taking Advantage of Forms Authentication

·          Building a Reusable Sign-in Control

·          Hashing Passwords

·          Helping Users Who Forget Their Passwords

·          Persistent Authentication Cookies

·          Setting a Timeout

·          Mandatory Expiration

·          Using Forms Authentication in Web Farms

·          Using <machineKey> Elements to Implement Single Sign-in Systems

·          Cookieless Forms Authentication

·          Creating a Hyperlink Control to Add the Authentication Ticket

·          Protecting Non-ASPNET Content

·          Supporting Role-Based Authorization with Forms Authentication

·          Using Multiple Sign-in Pages

·          Dealing with Failed Authorization

·          Listing Signed-in Users

·          Forcibly Signing Out a User

·          Summary

Chapter 14 - Customizing Security

·          Building a Custom Authentication Module

·          What Is an Authentication Module?

·          Building a Custom Identity Class

·          Building the HTTP Module

·          Running Authentication Modules in Tandem

·          Building a Custom Authorization Module

·          Running Authorization Modules in Tandem

·          Trust Levels

·          Using One of the Preconfigured Trust Levels

·          Forcing an Application to Use a Trust Level

·          Creating Custom Trust Levels

·          Recommended Use of Permissions

·          Summary

 

@2004 DaveAndAl.net