First I have a repeater, and I'm outputting a property. I have tried both
<%#Eval("Link")%>
and
<%#DataBinder.Eval(Container.DataItem, "Link")%>
I have a simple class
public class NewsItem
{
public string Link = "";
public string Title = "";
}
I populate a List news with with a simple for... each, and then...
repeater.DataSource = news;
repeater.DataBind();
and I get "DataBinding: 'index+NewsItem' does not contain a property with the name 'Link'