byte[] buffer =

context.Response.Clear();
context.Response.ClearHeaders();
context.Response.ClearContent();
context.Response.ContentType = "application/pdf";
context.Response.AppendHeader("Content-Disposition", String.Format("inline; filename=xxxx{0}.pdf", DateTime.Now.ToString("yyyyMMddhhmmss", System.Globalization.CultureInfo.InvariantCulture)));
if (buffer != null)
{
  context.Response.BinaryWrite(buffer);
}
context.Response.End();

最新文章

  1. 简单轮播js实现
  2. .NET中那些所谓的新语法之二:匿名类、匿名方法与扩展方法
  3. Web安全--XSS模版
  4. 栈的简单应用 HDU 1022 http://acm.hdu.edu.cn/showproblem.php?pid=1022
  5. python learning_curve函数
  6. 营配数据质量核查,关于营销mis系统与配电gis系统里面的sql语句查询,做为积累使用,下次就不用重复写同样的语句了。
  7. Swift和OC混编时, 关于@objc的作用
  8. hdu 4841 圆桌问题(STL vector)
  9. js中的一元运算符
  10. MYSQL数据库学习十三 使用MySQL常用函数
  11. python+pycahrm+windows环境准备
  12. C#之Redis所欲为
  13. vue的父子组件间的相互传参props及props数据的多种验证机制
  14. Node.js基础学习一之Get请求
  15. rm:删除目录和文件
  16. 【转载】Yui.Compressor高性能ASP.NET开发:自动压缩CSS、JS
  17. HBase学习之路 (三)HBase集群Shell操作
  18. jsp地址栏传中文显示乱码解决方法
  19. BZOJ 3053: The Closest M Points(K-D Tree)
  20. 虚拟机下安装centos7方法,修改系统语言为简体中文的方法

热门文章

  1. 利用python进行数据分析1_numpy的基本操作,建模基础
  2. 一、numpy入门
  3. numpy中tile函数
  4. 如何禁用Visual Studio的Browser Link功能
  5. Leetcode 7 反转整数Reverse Integer
  6. [LUOGU] 1090 合并果子
  7. Linux-利用keepalived实现lvs的高可用性
  8. (三)Python3 循环语句——while
  9. vfs_caches_init函数解析
  10. js prototype 添加属性对象