Reputation: 362
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.
is there any way to do so by asp.net code or jquery code or javascript code?
Upvotes: 3
Views: 478
Reputation: 72857
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!"
Possibilities like that would make virus coders very happy.
Upvotes: 7