关于迅雷下载
页面<asp:DropDownList ID="ddltest" runat="server">
<asp:ListItem Value="test.zip">10kb</asp:ListItem>
<asp:ListItem Value="FinchTV.zip">1M</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="btnold" runat="server" Text="直接下载" onclick="btnold_Click" /》
后台 protected void btnold_Click(object sender, EventArgs e)
{
string fileName = ddltest.SelectedValue.ToString().Trim();
string path = Server.MapPath(@"~\customer\test\");//文件路径确定正确
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment; filename=\"" + fileName + "\"");
Response.Flush();
//Response.Write(path + fileName);
Response.WriteFile(path + fileName);
}
哪位大虾给看看,这个要怎么改造才可以启动迅雷下载。现在这么写可以直接用IE自带,但是为什么不可以用迅雷呢?