I have a webforms control, my:Repeater, that is an asp:Repeater. I want to make a default template, like:
<my:Repeater>
<HeaderTemplate>
My Default Header
</HeaderTemplate>
<ItemTemplate>
My data
</ItemTemplate>
<FooterTemplate>
My Default Footer
</FooterTemplate>
</my:Repeater>
I want this template to be in some file not writable by the user. If the user just do
<my:Repeater/>
then it should use my default template. However, the user may override one or more of <HeaderTemplate>
, <ItemTemplate>
or <FooterTemplate>
.
Is this possible, and how can I achieve it?