用户操作
[留言]  [发消息]  [加为好友] 
订阅我的博客
XML聚合    FeedSky
订阅到鲜果
订阅到Google
订阅到抓虾
dengenming的公告
西有大秦 如日方升 百年国恨 沧海难平
文章分类
asp.net
vb to C#
zorou 的博客
只吃窝边草的兔子
存档

转载  下载 收藏

          String FullFileName = @"F:\VISIO2003.rar";
            FileInfo DownloadFile = new FileInfo(FullFileName);
            Response.Clear();
            Response.ClearHeaders();
            Response.Buffer = false;
            Response.ContentType = "application/octet-stream";
            Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(DownloadFile.FullName, System.Text.Encoding.UTF8));
            Response.AppendHeader("Content-Length", DownloadFile.Length.ToString());
            Response.WriteFile(DownloadFile.FullName);
            Response.Flush();
            Response.End();

发表于 @ 2006年09月30日 16:06:00 | 评论( loading... ) | 编辑| 举报| 收藏

旧一篇:无法在web服务器上启动调试 | 新一篇:sql server 2005 发送邮件

  • 发表评论
  • 评论内容:
  •  
Copyright © dengenming
Powered by CSDN Blog