ASP DataList

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
 
M

Marina

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

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top