单击一次如何从中继器下载多个图像

时间:2019-06-27 12:21:02

标签: asp.net

string filename = MapPath("../image/jpg");
        Response.ContentType = "image/JPEG";
        Response.AddHeader("Content-Disposition", "attachment; filename=" + filename + "");

        Response.TransmitFile(filename);
        Response.End();
<asp:Repeater ID="Repeater6" runat="server">
 <ItemTemplate>
  <a href="../images/<%#Eval("road_tax") %> "download> <img src="../images /<%#Eval("road_tax") %>"   style=" Height:140px; Width:130px; " />
  <br /><br />
   <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click"/>
  <%--                                                     
  <span class="fa fa download btn btn-info" aria-hidden="true">--%>
  <b>   Download</b></span></a>
 </ItemTemplate>
</asp:Repeater>

我想将所有图像下载到一个zip文件中,该图像在转发器中单击一次即可显示。请帮帮我

0 个答案:

没有答案