ArticleDirectory
<Headertemplate>
The content in the element appears only once in the output.
<Itemtemplate>
The content of the element corresponds
Duplicate "record" in Dataset
<Footertemplate>
The content appears only once in the output.
<Alternatingitemtemplate>
You can add the <alternatingitemtemplate> element after the <itemtemplate> element to describe the appearance of the alternate row.
<Separatortemplate>
An element can be used to describe the delimiter between each record. If the Delimiter is directly written in the <itemtemplate> tag, one separator is missing at the end;
Data Binding
<% # Eval ("fieldname") %> fieldname indicates the column name.
Datatable)
Repeater1.datasource = datatable; repeater1.databind ();
Example:
title |
artist |
country |
company |
price |
year |
<% # eval ("title ") %> | <% # eval ("artist") %> <% # eval ("country ") %> <% # eval ("company") %> <% # eval ("price ") %> <% # eval ("year ") %>