ASP.NET 2.0 Unleashed

Chapter 12. Using the DetailsView and FormView Controls

In this Chapter

  • Using the DetailsView Control

  • Using the FormView Control

  • Summary

The DetailsView and FormView controls, the subject of this chapter, enable you to work with a single data item at a time. Both controls enable you to display, edit, insert, and delete data items such as database records. Furthermore, both controls enable you to page forward and backward through a set of data items.

The difference between the two controls concerns the user interface that the controls render. The DetailsView control always renders each field in a separate HTML table row. The FormView control, on the other hand, uses a template that enables you to completely customize the user interface rendered by the control.

Категории