摘要:
在你的Page_Load中添加这样的代码:Page.Response.Clear(); bool success = ResponseFile(Page.Request, Page.Response, "目的文件名称", @"源文件路径", 1024000); if (!success) Response.Write("下载文件出错!");Page.Response.End();文件下载函数代码为:public static bool ResponseFile(HttpRequest _Request,HttpResponse _Re
阅读全文