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: 286
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