Programming Microsoft ASP.NET 4 - Dino Esposito [599]
Dealing with Validation in Cross-Page Posts
Working with Wizards
An Overview of the Wizard Control
Structure of a Wizard
Wizard Styles and Templates
The Wizard’s Programming Interface
Adding Steps to a Wizard
Types of Wizard Steps
Creating an Input Step
Defining the Sidebar
Navigating Through the Wizard
Filtering Page Navigation with Events
Canceling Events
Finalizing the Wizard
Summary
10. Data Binding
Foundation of the Data Binding Model
Feasible Data Sources
Collection Classes
ADO.NET Classes
Queryable Objects
Data-Binding Properties
The DataSource Property
The DataSourceID Property
The DataMember Property
The DataTextField Property
The DataValueField Property
The AppendDataBoundItems Property
The DataKeyField Property
Data-Bound Controls
List Controls
The DropDownList Control
The CheckBoxList Control
The RadioButtonList Control
The ListBox Control
The BulletedList Control
Iterative Controls
The Repeater Control
The DataList Control
The DataGrid Control
View Controls
The DetailsView Control
The FormView Control
The GridView Control
The ListView Control
Data-Binding Expressions
Simple Data Binding
Binding in Action
Implementation of Data-Binding Expressions
The DataBinder Class
The Eval Method
A More Compact Eval
Getting the Default Data Item
Managing Tables of Data
The GridView’s Object Model
Events of the GridView Control
Binding Data to the Grid
Configuring Columns
Bound Fields
Button Fields
Hyperlink Fields
Check Box Fields
Image Fields
Templated Fields
Working with the GridView
Paging Data
Sorting Data
Editing Data
Data Source Components
Internals of Data Source Controls
Data Source Views
Hierarchical Data Source Views
The ObjectDataSource Control
Programming Interface of ObjectDataSource
Implementing Data Retrieval
Using Parameters
Caching Data and Object Instances
Setting Up for Paging
Updating and Deleting Data
Configuring Parameters at Runtime
Summary
11. The ListView Control
The ListView Control
The ListView Object Model
Properties of the ListView Control
Events of the ListView Control
Compared to Other View Controls
Simple Data Binding
Defining the Layout of the List
Building a Tabular Layout
Definition of the Overall Layout
Definition of the Item Template
Using Alternate Rendering for Data Items
Reflecting On the Table Layout
Building a Flow Layout
Definition of the Overall Layout
Definition of the Item Layout
Building a Tiled Layout
Grouping Items
Using the Group Separator Template
Modifying the Group Item Count Dynamically
Data-Driven Group Templates
Styling the List
Style Properties
Using Cascading Style Sheets
Working with the ListView Control
In-Place Editing
Defining the Edit Item Template
Adding Predefined Command Buttons
Adding Custom Command Buttons
Conducting the Update
Deleting an Existing Record
Showing a Message Box upon Completion
Inserting New Data Items
Setting Up the Insert Item Template
Taking Full Control of the Insert Template
Adding a Bit of Validation
Selecting an Item
Triggering the Selection
Releasing the Selection
Paging the List of Items
The DataPager Control
Using the DataPager Control
Configuring the Data Pager Fields
Pageable Containers
Sorting the List
Summary
12. Custom Controls
Extending Existing Controls
Choosing a Base Class
Inheriting from a Base Class
Extending a Base Class
A Richer HyperLink Control
Designing a Usage Scenario
A Redirector for the HyperLink Control
Building Controls from Scratch