<ItemTemplate> to codebehind
Hi,
I would like to use this feature but in the codebehind. I'm reading from an example text and everything is not codebehind.
I would appreciate if you could help me on this.
<form runat=server>
<asp:DataList id="MyDataList" runat="server"
BorderColor="black"
BorderWidth="1"
GridLines="Both"
CellPadding="4"
CellSpacing="0"
>
<ItemTemplate>
<%# ((DictionaryEntry)Container.DataItem).Key %> :
<%# ((DictionaryEntry)Container.DataItem).Value %>
</ItemTemplate>
</asp:DataList>
</form>
Please help
Yours sincerely
Andla