Web form 里面如何only click a button ,就能一次过下载几个文件呢?
或者有什么其它方法能完成只做一个动作就能一次下载几个文件呢?
这个问题真系无聊,不过老板要求这样做,无办法.
或者有什么其它方法能完成只做一个动作就能一次下载几个文件呢?
这个问题真系无聊,不过老板要求这样做,无办法.
解决方案 »
- 谁遇到这个问题了,关于VS2012自带的blend
- does not contain a definition for 'DataGridView'
- C# 程序中自动添加数据录入字段
- 想问问大家 ,VS中经常使用Task window吗?经常使用user task吗?
- Vista系统下程序没反应(Not Responding)怎么解决
- 如何将btye[]转换为其他类型?
- c#读取excel文件数据
- 我在我的机器上运行web service时提示:我的机器不是asp.net 1.1 version 怎么回事
- 关于基类里包含子类的问题,这样写好不好
- C# Mono XmlDocument.Load(file) 不动,死在那里!!!
- 求救!为什么我用本地SMTP服务器(localhost)发送邮件老是被对方主机拒绝!大侠帮帮忙啊
- 编译工程中的许多项目的dll到一个目录??
<!--
function down()
{
window.open("a");
window.open("b");
window.open("c");
}
//-->
</script>
button调用改函数a,b,c为下载url
Response.ClearHeaders();
Response.ClearContent();
strDrive = "c:\\bb.xls";
filename = "bb.xls";
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");
Response.AppendHeader("Content-Disposition","attachment; Filename = " + System.Convert.ToChar(34) + filename + System.Convert.ToChar(34) );
Response.Flush();
Response.WriteFile( strDrive );
Response.End();
Response.Close();