We have a web server, which allows the user to download files (excel), which are dynamically-generated We'd like when a download has completed then it should automatically open client side in the excel.
我们有一个Web服务器,允许用户下载动态生成的文件(excel)我们希望在下载完成后它会自动打开excel中的客户端。
is there any way to do so by asp.net code or jquery code or javascript code?
有没有办法通过asp.net代码或jquery代码或javascript代码?
1 个解决方案
#1
6
Nope. You can't tell the client-side how to handle downloaded files.
不。您无法告诉客户端如何处理下载的文件。
Imagine the security issues that would cause.
"you just (accidentally?) downloaded someShiftyFile.pdf.exe
, now we MAKE your pc run it!"
想象一下可能导致的安全问题。 “你只是(不小心?)下载了someShiftyFile.pdf.exe,现在我们让你的电脑运行吧!”
Possibilities like that would make virus coders very happy.
这样的可能性会使病毒编码人员非常高兴。
#1
6
Nope. You can't tell the client-side how to handle downloaded files.
不。您无法告诉客户端如何处理下载的文件。
Imagine the security issues that would cause.
"you just (accidentally?) downloaded someShiftyFile.pdf.exe
, now we MAKE your pc run it!"
想象一下可能导致的安全问题。 “你只是(不小心?)下载了someShiftyFile.pdf.exe,现在我们让你的电脑运行吧!”
Possibilities like that would make virus coders very happy.
这样的可能性会使病毒编码人员非常高兴。