J
Jim Heavey
I have a book which shows that I can do Databinding to a control like the
following:
<asp:Label ID="lblScorecardCmntCategory" Runat="server" text='<%#
Container.DataItem("Name") %>'></asp:Label>
When I run this I get a error about, somthing about it was expecting a
method, not a property. DataItem is a method, is it not? If I use the
longer "eval" form, it works just fine, but I do not understand what I am
doing wrong with this "version" of databinding.
Can you clear up my confustion?
following:
<asp:Label ID="lblScorecardCmntCategory" Runat="server" text='<%#
Container.DataItem("Name") %>'></asp:Label>
When I run this I get a error about, somthing about it was expecting a
method, not a property. DataItem is a method, is it not? If I use the
longer "eval" form, it works just fine, but I do not understand what I am
doing wrong with this "version" of databinding.
Can you clear up my confustion?