使用I如果我试图改变基于条件的图像控制的图像URL里面下面的GridView是我的标记:GridView控件
<asp:TemplateField HeaderText="Status">
<ItemTemplate>
<asp:Image ID="Image1" runat="server"
ImageUrl='<%# IIf(CDate(Eval("startdate")) < CDate(Eval("expdate")),"~/iWebmallManager/Images/bullet_red.png",
"~/iWebmallManager/Images/bullet_green.png" %>'
/>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Left" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:TemplateField>
的IIF语句没有工作。我不知道我在做什么的权利,请帮助
什么框架? – 2012-01-04 13:44:26
ASP.Net - framework 4.0 – 2012-01-04 13:49:40
它已经解决了谢谢 - 我省略了最后一个关闭支架 – 2012-01-04 13:50:28