S
Sal
Hello All,
Is it possible to databind Header Template for a datalist ?
for example for binding to an item template I can use the following
construct:
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "ProductID") %>
</ItemTemplate>
In trying to databind the Header the following construct did not work:
<HeaderTemplate>
<%# DataBinder.Eval(Container.DataItem, "CategoryID") %>
</HeaderTemplate>
Is there a way to accomplish this with one trip to the server? i.e. binding
both header and item to the same datasource and different fields?
Any help will be greatly appreciated
Sal Sarhangi
Is it possible to databind Header Template for a datalist ?
for example for binding to an item template I can use the following
construct:
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "ProductID") %>
</ItemTemplate>
In trying to databind the Header the following construct did not work:
<HeaderTemplate>
<%# DataBinder.Eval(Container.DataItem, "CategoryID") %>
</HeaderTemplate>
Is there a way to accomplish this with one trip to the server? i.e. binding
both header and item to the same datasource and different fields?
Any help will be greatly appreciated
Sal Sarhangi