我知道如何强制下载带有服务器端代码的文件。这是示例代码
Response.Clear(); //eliminates issues where some response has already been sent
Response.ContentType = "text/plain";
Response.AddHeader("Content-Disposition", string.Format("attachment; filename={0}.sql", filename));
Response.Write(yourSQL);
Response.End();
我想知道我需要添加哪些标题信息以提供简历支持,因此客户端可以在暂停时恢复下载。我有一个链接,但它有许多代码行的答案
** http://forums.asp.net/t/1218116.aspx?Resume+Download+for+Huge+Files
how resume able file download in asp.net with c# -> best way (for large files too)
https://code.msdn.microsoft.com/Implement-resume-in-aspnet-c1bbde36 **
感谢