1

我使用这种方法下载文件

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");
}

有什么方法可以检查下载进度,甚至在下载完成时收到通知?

谢谢

4

1 回答 1

1

在浏览器中检测文件下载对话框

取自这个答案

于 2012-10-24T11:14:40.667 回答