Murach's ASP.NET 2.0 Upgrader's Guide: C# Edition
How to use the DetailsView and FormView controls

The new DetailsView and FormView controls are ideal for any application that displays bound data one record at a time. This chapter shows you how to use them, either in conjunction with the GridView control, on their own, or in combination with other types of list controls.

Chapter 6 How to use the DetailsView and FormView controls
How to use the DetailsView control 188
An introduction to the DetailsView control 188
Attributes and child elements for the DetailsView control 190
How to add fields to a DetailsView control 192
How to enable paging 194
How to create a Master/Detail page 196
How to update DetailsView data 198
An introduction to command buttons 198
How to add command buttons 200
How to handle DetailsView events 202
How to fix the optimistic concurrency bug 204
The Product Maintenance application 206
The operation of the application 206
The aspx file 206
The code-behind file 212
How to use the FormView control 214
An introduction to the FormView control 214
How to work with the item template 216
How to work with the edit item and insert item templates 218
A Shopping Cart application that uses a FormView control 220
The operation of the application 220
The aspx file for the Order page 222
The code-behind file for the Order page 222




Murach's ASP.NET 2.0 Upgrader's Guide: C# Edition

Learn more about this book

Add this book to your cart



Our Ironclad Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a full refund...no questions asked.