need second pair of eyes: databinder.eval problem

D

darrel

I'm stuck on this one and I'm hoping it's simple user error on my part and I
have a typo somewhere. ;o)

I have a repeater control that's getting data from the dataset in the
codebehind:

<HeaderTemplate>
HeaderTemplate: <%# getTitle(DataBinder.Eval(Container.DataItem,
"Title")) %>
</HeaderTemplate>

<ItemTemplate>
ItemTemplate: <%# getTitle(DataBinder.Eval(Container.DataItem, "Title"))
%>
</ItemTemplate>

I can get the function to return a value and display in the ItemTemplate,
but it refused to return anything in the HeaderTemplate. Anyone know why? In
this case, only one item shows, so I can easily just leave the function call
in the ItemTemplate, but it's bugging me that this isn't working for some
reason.

-Darrel
 

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,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top