System.Web.UI.WebControls Namespace DataList Class
Specifies the template to use for separators between items in a DataList.
<asp:datalist ... >
<separatortemplate>
... template definition here
</separatortemplate>
</asp:datalist>
An ITemplate interface that defines how separators between items of a DataList control are rendered.
The property is read/write with no default value.
The SeparatorTemplate describes the layout of elements to render between each row. The separator allows to place an element with custom content between each item in the DataList, typically line breaks ( <br> tags ), horizontal lines ( <hr> tags ), and so on.
To specify a template for the separator in a DataList, declare a <SeparatorTemplate> element between the opening and closing tags of the control. You can then list the contents of the template between the opening and closing <SeparatorTemplate> ... </SeparatorTemplate>
tags.
NOTE: The SeparatorTemplate item cannot be data bound.
DataList Members ItemTemplate AlternatingItemTemplate EditItemStyle SelectedItemStyle HeaderTemplate FooterTemplate