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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

How to get value from column in Datalist into variable 2
CheckboxList in DataList ? 3
Format DataList 2
Container.DataItem 4
DataList in Table 1
DataList 2
Question about DataList 1
How to format Data Item in c# 3

Back
Top