The ASP.NET FormView control is a data-bound control that renders a single record at a time from its associated data source. It is quite similar to the DetailsView control except that while the DetailsView renders itself into a tabular format, the FormView control requires user-defined templates for rendering. According to the MSDN, "When using the FormView control, you specify templates to display and edit bound values. The templates contain formatting, controls, and binding expressions to create the form. The FormView control is often used in combination with a GridView control for master or detail scenarios."
To use the FormView control, simply drag and drop it from the tool box and then associate the control with a data source. In our example we will take the SqlDataSource control to bind data to the FormView control. You can use an existing data source or create a fresh new one using the smart tag of the control.
As we have seen in Chapter...