在datalist实现图片产生链接
<asp:DataList ID="DataList2" runat="server" RepeatColumns="6"
RepeatDirection="Horizontal"> <ItemTemplate> <br /> <a href='<%# "previewGoodWork.aspx?goodworkpicturepath="+DataBinder.Eval(Container.DataItem,"goodworkpicturepath") %>' OnCommand="ImageButton1_Command" ImageUrl='<%# Eval("goodworkpicturepath") %>' > <asp:Image ID="Image3" runat="server" ImageUrl='<%# Eval("goodworkpicturepath") %>' /></a> <br /> </ItemTemplate> </asp:DataList> |