Repeater控件的样式问题
<asp:Repeater ID="ProductRelationNo" runat="server">
<ItemTemplate>
<a href="/product_detail-<%#Eval("ProductID")%>.html"><img src="/upimage/<%#Eval("PicPathSmall")%>" width="45" height="45" style="border:1px solid #cccccc;"></a>
</ItemTemplate>
</asp:Repeater>
举例:
这个循环显示5张图片,ProductID分别为1,2,3,4,5
现在想实现以下效果:
当前页面ID是2的时候,这个图片选中,边框颜色变成红色style="border:1px solid #ff0000;"
当前页面ID是3的时候,这个图片选中,边框颜色变成红色style="border:1px solid #ff0000;"
……