Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databou

Posted by Dan on Stack Overflow See other posts from Stack Overflow or by Dan
Published on 2010-04-03T14:44:53Z Indexed on 2010/04/03 14:53 UTC
Read the original article Hit count: 273

Filed under:
|
|

Hey

I am getting the following error

Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control.

but all I am trying to do is inside a ASP.NET REPEATER Control

<% if ( Eval("Message").ToString() == HttpContext.Current.Profile.UserName) %>
<% { %>

           <asp:ImageButton runat="server" etc.... />
<% } %>

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about repeater