ASP.NET 2.0 Data Controls Author: Douglas Minnaar The intent of this series is to provide more information concerning the functionality and limitations of the available ASP.NET 2.0 data controls. This will mostly be demonstrated through the use of code samples. Once this series is complete, I will demonstrate how one can AJAX enable some of these samples to improve the overall user experience. Therefore, this series will address the basics first before moving onto more advanced tools. Many will feel that there is enough information available concerning these matters. However, for completeness sake, I feel it is important to provide a good foundation from which to launch future articles from. The articles in this series will address typical scenarios that one might encounter in terms of developing with ASP.NET data controls. There will be three parts in this series: •
Part 1 – ASP.NET GridView
•
Παρτ 2 ΑΣΠ.ΝΕΤ Φορµςιεω ανδ ∆εταιλσςιεω
•
Part 3 – ASP.NET Repeater and DataList
The SqlDataSource control is used throughout the series for simplicities sake.
Part 3 - ASP.NET DataList and Repeater control This is the third article in a three part series of articles pertaining to the understanding and application of ASP.NET 2.0 data controls. This article will address common functionality that may be required from ASP.NET DataList and DataRepeater data controls. Level: Novice - Intermediate Prerequisites: •
In order for the sample code to run, one will require the Northwind database running on either SqlExpress or Sql2005.
•
An understanding of C# and ASP.NET development code
Please download the code here
Introduction Based on various Microsoft documentation, the ASP.NET DataList and Repeater can be summarised as follows. The DataList control is a data bound list control that displays items using templates. Use the DataList control to display a template-defined data bound list. The DataList control supports selecting and editing. The contents of the DataList control can be manipulated by using