我使用此方法下载文件
public FilePathResult downloadFile(string fileName)
{
//Download the spreadsheet
string path = "C:\\Users\\Johandk\\Documents\\Visual Studio 2010\\Projects\\FormValue\\" + fileName + ".xlsx";
return File(path, "application/vnd.ms-excel", fileName + ".xlsx");
}有没有什么方法可以检查下载进度,甚至在下载完成时得到通知?
谢谢
发布于 2012-10-24 19:14:41
Detecting the File Download Dialog In the Browser
取自此answer
https://stackoverflow.com/questions/13048042
复制相似问题