大家好,
从项目模板的价值相比,它应与字符串比较。 <itemtemplate>
<asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="false"
CommandArgument="<% # Container.DataItemIndex %>" CommandName="EVA"
ImageUrl=" /Images/cross.gif"
Visible='<%# Eval("EvaluationComplete") = 'NO' %>' />
<asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="false"
CommandArgument="<% # Container.DataItemIndex %>" CommandName="EVA"
ImageUrl=" /Images/tick.gif"
Visible='<%# Eval("EvaluationComplete") = 'YES' %>' />
</itemtemplate>