Book Excerpt: ASP.NET Data Presentation Controls Essentials
Master the standard ASP.NET server controls for displaying and managing data.
by DEVX Staff
Jan 15, 2008
s you design and implement ASP.NET web applications, you will need to fully master the techniques for displaying data to users. This need led Microsoft to develop the many different data presentation controls that ship with ASP.NET. These controls are data-bindable server controls that help you organize data and display it in useful ways. This book covers the most important data presentation controls in ASP.NET (from ASP. NET 1.x to ASP.NET 3.5/Orcas). Packed with plenty of real-life code examples, tips, and notes, it's an excellent resource for readers who want to fully leverage the awesome features these controls provide for displaying and managing complex data in ASP.NET web applications.
Book Chapter Descriptions
Each chapter covers one or more specific controls or features, shows and explains how to perform the tasks, and provides source code you can use immediately in your own applications.
Chapter 1 discusses the ASP.NET databinding model and working with the data source controls in ASP.NET.
Chapter 2 explains the various list controls, and shows how to build a custom control that extends CheckBoxList to provide added functionalities.
Chapter 3 shows how to display tables of data with the Repeater control and discusses related operations, such as paging and sorting data.
Chapter 4 explains how to use the DataList control and illustrates how to bind images to it dynamically.
Chapter 5 covers customized DataGrid displays and how to set up DataGrids to edit, delete, and format data. It shows how to page and sort data and display customized formats.
Chapter 6 presents the GridView control and its operations, such as paging, sorting, inserting data, updating data, deleting data, and displaying data in custom formats. It also discusses how to implement a custom GridView control to display hierarchical data, and how to export a GridView control to MS Excel and MS Word.
Chapter 7, the sample chapter published here, explores the remaining ASP.NET view controls, including the DetailsView, FormView, and TreeView controls, using examples that show how to use them to perform various common operations, such as buildilng drill-down forms.
Chapter 8 discusses LINQ's features and benefits, and shows how to use it to bind data to the new Orcas data controls.