ASP DataList

  • Thread starter Thread starter Chris Fink
  • Start date Start date
C

Chris Fink

Hello,

I have an ASP Datalist in which I am binding a value within the
<itemtemplate> section as follows:

<%# DataBinder.Eval(Container.DataItem, "week")%>

This displays the week value as expected.

However, the same statement in the <headertemplate> of the datalist
display's nothing?

Confused?

Chris
 
That is because the header is not bound for every item. There is only one
header in the datalist, regardless of how many items are in it.
 
Back
Top