S
sklett
I have a collection of objects that I have bound to a DataList. My
collection is based on CollecionBase.
In the ItemTemplate for my DataList I have this:
<code>
<%#Container.DataItem("FileName")%>
</code>
FileName is a property of my class.
This generates an error:
DataListItem.DataItem' denotes a 'property' where a 'method' was expected
I'm not sure what I'm doing wrong, do you?
collection is based on CollecionBase.
In the ItemTemplate for my DataList I have this:
<code>
<%#Container.DataItem("FileName")%>
</code>
FileName is a property of my class.
This generates an error:
DataListItem.DataItem' denotes a 'property' where a 'method' was expected
I'm not sure what I'm doing wrong, do you?