Murach's ASP.NET 4 Web Programming
with VB 2010

How to use the DetailsView and FormView controls

The DetailsView and FormView controls are ideal for any ASP.NET 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 484
An introduction to the DetailsView control 484
Attributes and child elements for the DetailsView control 486
How to define the fields in a DetailsView control 486
How to enable paging 488
How to create a Master/Detail page 490
How to update DetailsView data 492
An introduction to command buttons 492
How to add command buttons 494
How to use events raised by the DetailsView control 496
How to create template fields 498
The Product Maintenance application 500
The operation of the application 500
The aspx file 500
The code-behind file 504
How to use the FormView control 508
An introduction to the FormView control 508
How to work with the Item template 510
How to work with the EditItem and InsertItem templates 512
A Shopping Cart application that uses a FormView control 514
The operation of the application 514
The aspx file for the Order page 516
The code-behind file for the Order page 516




Murach's ASP.NET 4 with VB 2010

Learn more about this book

View the table of contents


More about the eBook



Our 100% 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 prompt refund...no questions asked.