asp.net 下载附件
所属类别:技术博客
文章作者:H_J_H
特别推荐:免费发布信息 承包关键词~~抢爆了!HOT!
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["ID"] == null) return; string AttaID = Request.QueryString["ID"].ToString(); string FileName = Request.QueryString["FileName"].ToString(); byte[] filebyte = new WebClass.Errands().Customer_Atta_Get(AttaID); Response.Clear(); Response.AppendHeader("Content-Disposition", "attachment;filename=" +Server.UrlEncode(FileName)); Response.AppendHeader("Content-Length", filebyte.Length.ToString()); Response.ContentType = "application/octet-stream"; Response.OutputStream.Write(filebyte, 0, filebyte.Length); Response.End(); }发表于 @ 2006年09月20日 11:42:00评论(loading...AddFeedbackCountStack("1253093"))编辑旧一篇:声明-------
相关信息· Linux系统中Vi常用命令及高级应用
· Linux 操作系统启动流程
· javascript读取xml
· 使用XML、XSLT和XPath创建可排序、分页、重用的数据显示页面
80723
19881
