All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
Silverlight,2,(beta1)数据操作(6)——使用LINQ,to,SQL进行数据_[Asp.Net教程]
PHP实例:一个比较完善的购物车类_[PHP教程]
visual c++控件使用实例
ASP.NET2.0服务器控件开发之基本概念篇_[Asp.Net教程]
推荐:ASP.NET虚拟主机安全漏洞解决方案_.net资料_编程技术
Zope的优点和Apache+PHP+MySQL的比较_[PHP教程]
ASP.NET入门随想之检票的老太太_[Asp.Net教程]
visual c++中的构造函数与析构函数
用PHP程序实现删除目录的三种方法实例_php资料_编程技术
PHP中数组元素升序、降序及重新排序的函数_[PHP教程]
Reading number is top 10 pictures
Chinese paper-cut grilles art appreciation7
世界各国15岁的MM有什么不同
2012 national geographic daily picture8
Sora aoi in China4
泳装名模阿尔贝特妮写真
5 meters long centenarians python and melee was successfully capture king snake (figure)
抗日又出雷剧情
So beauty, will let you spray blood9
China's ambassador to Libya embassy was shock, and the glass is broken in
A man's favorite things16
Download software ranking
Be there or be square
Boxer's Top ten classic battle10
Tram sex maniac 2 (H) rar bag14
电脑知识及技巧大合集
Unix video tutorial14
I'm come from Beijing2
Unix video tutorial17
Professional killers2 for Android
网络管理员第三版
虚拟机汉化软件
归海一刀 published in(发表于) 2014/1/30 1:22:14 Edit(编辑)
ASP.NET文件下载实现方法源程序_[Asp.Net教程]

ASP.NET文件下载实现方法源程序_[Asp.Net教程]

ASP.NET文件下载实现方法源程序_[Asp.Net教程]
private void FileDownload(string FullFileName)

{

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();

}
调用方法

string path= Server.MapPath("fujian/"+文件名称);
//path为服务器存放文件的路径
FileDownload(path);


添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.