Response.Charset = GB-2312;
                Response.AppendHeader(
Content-Dispositionattachment; filename= + HttpUtility.UrlEncode(curResource.ResourceURL));
                Response.ContentEncoding
=System.Text.Encoding.UTF7;
                Response.ContentType 
= application/octet-stream;
                Response.TransmitFile(Server.MapPath(StudentHomeManager.DownloadPath 
+ / + curResource.ResourceURL));
                Response.End();

版权声明:本文为sunrack原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/sunrack/articles/1362084.html