O'Reilly logo

Programming Microsoft® ASP.NET 3.5 by Dino Esposito

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The FormView Control

FormView is a new data-bound control that can be considered the templated version of the DetailsView. It renders one record at a time, picked from the associated data source and, optionally, provides paging buttons to navigate between records. Unlike the DetailsView control, FormView doesn't use data control fields and requires the user to define the rendering of each item by using templates. The FormView can support any basic operation its data source provides.

Note that the FormView requires you to define everything through templates, and not just the things you want to change. The FormView has no built-in rendering engine and is limited to printing out the user-defined templates.

The FormView Object Model

Two functional aspects ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required