로더가 화면에 표시되는 동안 버튼을 클릭하면 이 많아서 html
에서 생성되었습니다. browser..there에서 생성 된 모든 압축 파일을 다운로드 한 후 은 내가다시 게시 할 때 로더를 시작하고 싶습니다. 다시 게시하면 중지됩니다.
코드 뒤에 .. 그래서 내가 이 제발 도와주세요 .. 로더를 막을 수 없다
Response.AddHeader("Content-Disposition", "attachment; filename=output.zip");
Response.TransmitFile(zipPath);
를 사용해야합니다 :
protected void Button1_Click(object sender, EventArgs e)
{
string test = GetImportDetailsPDF("ImportFile(2)_2017.12.19-12.30.24.xlsx");
//Generated all pdf files zipped and downloaded here
string startPath = Server.MapPath("/ImportPdf/");
string zipPath = Server.MapPath("/ImportZip/result.zip");
ZipFile.CreateFromDirectory(startPath, zipPath);
System.Web.HttpResponse response = System.Web.HttpContext.Current.Response;
response.ClearContent();
response.Clear();
Response.ContentType = "image/jpeg";
Response.AddHeader("Content-Disposition", "attachment; filename=output.zip");
Response.TransmitFile(zipPath);
HttpContext.Current.Response.Flush(); // Sends all currently buffered output to the client.
HttpContext.Current.Response.SuppressContent = true; // Gets or sets a value indicating whether to send HTTP content to the client.
HttpContext.Current.ApplicationInstance.CompleteRequest(); // Causes ASP.NET to bypass all events and filtering in the HTTP pipeline chain of execution and directly execute the EndRequest event.
HttpContext.Current.Response.End();
}
public string GetImportDetailsPDF(string FileName)
{
//Here i have generated large amount of pdf generated from html page..
return "Successfully Imported";
}
어떤 차단 도구를 사용하고 있습니까 ... 어떻게 시작 되나요? jQuery blockui 등 – DotNetDev