的Page_Load中添加这样的代码:
ASP.NET文件下载函数(好用的东东) Page.Response.Clear();
ASP.NET文件下载函数(好用的东东) 
bool success = ResponseFile(Page.Request, Page.Response, "目的文件名称"@"源文件路径"1024000);
ASP.NET文件下载函数(好用的东东) 
if (!success)
ASP.NET文件下载函数(好用的东东)     Response.Write(
"下载文件出错!");
ASP.NET文件下载函数(好用的东东)Page.Response.End();

文件下载函数代码为:
ASP.NET文件下载函数(好用的东东)public static bool ResponseFile(HttpRequest _Request,HttpResponse _Response,string _fileName,string _fullPath, long _speed)
    }

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
  • 2021-05-17
  • 2021-09-20
  • 2022-01-12
  • 2021-12-03
猜你喜欢
  • 2022-03-07
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案