I'm in trouble here because of a little problem.
In fact, in my MVC project, I have a controller which build a Excel file and the return value is a FileResult.
for now, I'm using this like that :
<form id ="TransacExportForm" method="POST" action="/theproject/thecontroller/theaction" style="display:none;">
As I expected, after 25 seconds, the browser send the window popup to download the file (which is what I want)
It works perfectly, but it's so long... It's why I would do some ajax calls in order to have a "loading gif", and when the file is "created", the browser send the message to download the file.
I tried a loooot of things (get, ajax, etc...). The file is created but the browser don't send any message to download the file.
If someone could give me an answer, it would be very great :D !
View Complete Post