Murach's ADO.NET 2.0 with VB 2005
How to use the DetailsView and FormView controls

This chapter shows you how to use the DetailsView and FormView controls, which were introduced in ASP.NET 2.0. Although these controls are designed to work with the GridView control to display the details of a selected item, they can also be used on their own or in combination with other types of list controls.

Chapter 13 How to use the DetailsView and FormView controls
How to use the DetailsView control 428
An introduction to the DetailsView control 428
Attributes and child elements for the DetailsView control 430
How to add fields to a DetailsView control 432
How to enable paging 434
How to create a Master/Detail page 436
How to update DetailsView data 438
An introduction to command buttons 438
How to add command fields 440
How to handle DetailsView events 442
How to fix the optimistic concurrency bug 444
How to create template fields 446
A Vendor Maintenance application that uses a DetailsView control 448
The operation of the application 448
The aspx file 448
The code-behind file 452
How to use the FormView control 456
An introduction to the FormView control 456
How to work with the Item template 458
How to work with the EditItem and InsertItem templates 460
A Vendor Maintenance application that uses a FormView control 462
The operation of the application 462
The aspx file 464
The code-behind file 470




Murach's ADO.NET 2.0 with VB 2005

Learn more about this book

View the table of contents

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.