- ItemTemplate
- AlternatingltemTemplate
- SeparatorTemplate
- HeaderTemplate
- FooterTemplate
In ASP.NET, the Repeater control is used to display a repeated list of items from a data source. It provides great flexibility in defining the layout of the repeated items. Here are the templates associated with the Repeater control:
- ItemTemplate: This template is used to define the layout of each item in the Repeater control.
- AlternatingItemTemplate: Similar to ItemTemplate, but this template is applied to every other item in the Repeater control. It’s useful for applying different styling or layout to alternating items.
- HeaderTemplate: This template is used to define the layout for the header section of the Repeater control.
- FooterTemplate: Similar to HeaderTemplate, this template is used to define the layout for the footer section of the Repeater control.
- SeparatorTemplate: This template is used to define the layout of the separator between each item in the Repeater control. It’s optional and is only rendered if the SeparatorTemplate property is set.
Each of these templates allows developers to customize the appearance and structure of the repeated items, header, footer, and separators within the Repeater control, providing a powerful way to display data in ASP.NET applications.