Murach's ASP.NET 3.5 with C# 2008
How to use the DetailsView and FormView controls

The DetailsView and FormView controls, which were introduced in ASP.NET 2.0, are ideal for any application that displays bound data one row at a time. This chapter shows you how and when to use each one.

Chapter 15 How to use the DetailsView and FormView controls
How to use the DetailsView control 466
An introduction to the DetailsView control 466
Attributes and child elements for the DetailsView control 468
How to define the fields in a DetailsView control 468
How to enable paging 470
How to create a Master/Detail page 472
How to update DetailsView data 474
An introduction to command buttons 474
How to add command buttons 476
How to use events raised by the DetailsView control 478
How to fix the optimistic concurrency bug 480
How to create template fields 482
The Product Maintenance application 484
The operation of the application 484
The aspx file 484
The code-behind file 488
How to use the FormView control 492
An introduction to the FormView control 492
How to work with the Item template 494
How to work with the EditItem and InsertItem templates 496
A Shopping Cart application that uses a FormView control 498
The operation of the application 498
The aspx file for the Order page 500
The code-behind file for the Order page 500




Murach's ASP.NET 3.5 with C# 2008

Learn more about this book

View the table of contents


More about the eBook



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.