zoukankan      html  css  js  c++  java
  • .net 正在中止线程

    HttpContext.Current.Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
                    HttpContext.Current.Response.AddHeader("content-disposition", string.Format("attachment;  filename={0}.xlsx", HttpUtility.UrlEncode(strFileName, Encoding.UTF8)));
                    HttpContext.Current.Response.ContentEncoding = Encoding.UTF8;
    
                    HttpContext.Current.Response.Buffer = true;
                    HttpContext.Current.Response.Clear();
                    HttpContext.Current.Response.BinaryWrite(pck.GetAsByteArray());
    
                    //HttpContext.Current.ApplicationInstance.CompleteRequest();
                    HttpContext.Current.Response.End();

    导出异常 点击调用方式不对,点击事件更改触发方式( EnableAjax="false")|| href=“方法”。

  • 相关阅读:
    内联汇编的使用
    metamask注记词
    一个简单的增删改查合约
    企业邮箱账号
    压缩包管理
    设计模式
    软硬链接ln
    文件IO-Linux
    静态库和动态库
    gdb调试
  • 原文地址:https://www.cnblogs.com/jayrocking/p/11720237.html
Copyright © 2011-2022 走看看