使用Response.Transmitfile时显示进度条

时间:2015-07-09 11:43:52

标签: c# jquery asp.net

在网络表单按钮上单击我正在进行简单的文件下载

FileInfo file = new FileInfo(resourcesFolderPath + fileName);        Response.Clear();
Response.ClearHeaders();
Response.ClearContent();
Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
Response.AddHeader("Content-Length", file.Length.ToString());
Response.ContentType = "text/plain";
Response.Flush();
Response.TransmitFile(file.FullName);
Response.End();

由于某些文件非常庞大,任何人都知道如何通过jQuery / javascript显示进度条?

0 个答案:

没有答案