Simple question and no answer somehwere ... What's wrong?
ASP.NET example:
<asp:Repeater ID="myRepeater" runat="server">
<ItemTemplate>
<% if(!string.IsNullOrWhiteSpace(((Message)((RepeaterItem)Eval("Container")).DataItem).text)) <%-- <- Exception --%>
{ %>
<div class="msg">
<%# ((Message)Container.DataItem).text %> <%-- <- This works fine! --%>
</div>
<% } %>
</ItemTemplate>
</asp:Repeater>
Exception in line 3: Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.
I don't understand why this is not working >.<
Thanks in Advance for ideas or informations.