请帮助我将图像从数据库显示到网页。这是我的源代码,但它显示创建中继器控件时出错
<asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound" OnItemCommand ="Repeater1_ItemCommand">
<ItemTemplate>
<asp:Image ID="myImage" ImageUrl='<%# "~/ImageHandler.ashx?BImID="+Eval("img_id") %>' runat="server" alt=" " ;style="height:200px;width:200px;border:1px solid gray"/><asp:Literal ID="litSeparator" runat="server"></asp:Literal>
</ItemTemplate>
</asp:Repeater>