Updatepanel 中导出excel的解决办法
来源:互联网 发布:jquery链式编程 编辑:程序博客网 时间:2024/06/15 03:15
(1)在UpdatePanel中加以下代码 (测试过可以的):
ControlID为你导出Excel的按钮
(2)另外一种办法(没有测试过)
GridView1.EnableViewState = false; HttpContext.Current.Response.Charset = "GB2312"; HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.UTF7; HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(FileName, Encoding.UTF8).ToString()); HttpContext.Current.Response.ContentType = FileType; this.EnableViewState = false; StringWriter tw = new StringWriter(); HtmlTextWriter hw = new HtmlTextWriter(tw); GridView1.RenderControl(hw); HttpContext.Current.Response.Write(tw.ToString()); HttpContext.Current.Response.End();
- Updatepanel 中导出excel的解决办法
- updatepanel中gridview导出到Excel解决办法
- 转 在UpdatePanel中GridView导出EXCEL问题
- jQuery在updatePanel中失效的解决办法
- jQuery在updatePanel中失效的解决办法
- UpdatePanel 中下载失败的解决办法
- Asp.net 中导出excel后终止进程的解决办法
- UpdatePanel中的GridView导出成Excel
- UpdatePanel中FileUpload控件获取不到值的解决办法
- ASP.NET中UpdatePanel内JS失效的解决办法
- updatepanel中的模板页中的控件 进行全局刷新的解决方法(respone.write()出错的解决方法,updatepanel中导出excel的解决方 案) (转自freeliver54博客)
- ASP.NET的GridView在UpdatePanel里导出Excel的语句
- ASP.NET的GridView在UpdatePanel里导出Excel的语句
- GridView导出Excel使用UpdatePanel导致“无法分析从服务器收到的消息”解决方法.
- lotus中Excel的导出
- java中excel的导出
- easyui messager.prompt没有输入默认值的解决办法=在JS中导出EXCEL的方法
- UpdatePanel中如何实现导出功能
- 计算机会议排名(系列1)
- Head First C# 中文版 第13章 控件和图形 page598
- AT命令
- ASP.Net 中常用的数据库连接方式
- 基于微软ASP.NET AJAX框架开发幻灯片播放网页
- Updatepanel 中导出excel的解决办法
- 2009.08.02
- 动态wap站点建立
- (转)软件项目中的功能点法估算-原理
- SQL Server Profiler工具
- javascript验证中文的正则表达式
- C++ 算法(STL)
- 让杂牌 USB 蓝牙适配器自动安装驱动的办法
- String.split() 分隔符问题