datalist取值判断问题
<asp:DataList id= "DataList1 " runat= "server " RepeatColumns= "4 ">
<ItemTemplate>
<TABLE id= "Table2 " cellSpacing= "0 " cellPadding= "0 " border= "0 ">
<TR>
<TD>
<asp:Label id= "lbl " runat= "server "> <%# DataBinder.Eval(Container.DataItem, "id ")%> </asp:Label> </TD>
<asp:Image id= "img " runat= "server " > </asp:Image>
</TR>
</TABLE>
</ItemTemplate>
</asp:DataList>
如何判断label的值,如果label的值=1的话,则隐藏img
------解决方案--------------------代码看上去没什么错误啊,是不是你判断条件有问题,还是数据有问题啊?仔细查看一下啊
------解决方案--------------------(Label)dltCopySendUser.Items[i].FindControl( "lbl ").Text