ASP.NET has a data control feature called The Repeater Control. The feature uses a template so it’s easy to navigate and easy to control. It’s useful in automating the display of a list of items that are repeated multiple times.

The great thing about The Repeater Control is that it can be tied to a database table or an XML file.

There are five templates associated with ASP.NETs Repeater Control:

  • HeaderTemplate
  • ItemTemplate
  • AlternatingItemTemplate
  • SeparatorTemplate
  • FooterTemplate

DotNetTutorials has a great tutorial on how to use The Repeater Control in creating and using Repeaters in ASP.NET.

The first step to using Repeaters, of course, is to set up your project and create the Repeater. That’s fairly simple:

  1. Create your project in Visual Web Developer
  2. Create a Web form named Default.aspx
  3. Create a new SQL Database and name it Repeater.mdf
  4. Create a table called Repeater inside the database. Give it columns named Primary Key and Identity and a Name of varchar(50)
  5. Fill the table out with sample data
  6. Drag an SQL data source object into the form you created
  7. Now connect the SQL data source to the database and table by clicking Smart Tag and selecting Configure DataSource

To follow the rest of the steps in the tutorial on creating and using Repeaters in ASP.NET, visit DotNetTutorials.