Using the DetailsView Control The (Php web hosting) DetailsView control in

Using the DetailsView Control The DetailsView control in the Toolkit s Data category is similar to the GridView in that you can use it to show data as well as to edit and delete data. The main difference is that the GridView is designed to show multiple rows and columns in a tabular format, and DetailsView is designed for working with one record at a time. For readers who are familiar with Microsoft Access, a GridView is like a datasheet and a DetailsView control is more like a form. The FormView control is an older ASP.NET 1 control that isn t quite as easy to use as the new ASP.NET 2.0 DetailsView control. Binding a DetailsView control The DetailsView control allows you to add, edit, and delete records in a table. However, it can only do so if it s bound to a single table that has a primary key. If you bind a DetailsView control to a view or to multiple tables, you can still see data in the control, but you can t edit data in the underlying table(s). Figure 12-27: Page shows profile properties and transactions for selected user. Chapter 12: Using Data in Web Pages 287
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.

Leave a Reply