首页 新闻 赞助 找找看

gridview导出excel出现内存溢出

1
悬赏园豆:5 [已关闭问题]

 

Code

 

问题补充: 代码: Response.Clear(); Response.AddHeader("content-disposition","attachment;filename=StoresList.xls"); Response.Charset = "gb2312"; Response.ContentType = "application/vnd.xls"; System.IO.StringWriter stringWrite = new System.IO.StringWriter(); System.Web.UI.HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite); gvStores.AllowPaging = false; Bind(); gvStores.RenderControl(htmlWrite); Response.Write(stringWrite.ToString()); Response.End(); gvStores.AllowPaging = true; Bind();
刑ˇ天的主页 刑ˇ天 | 初学一级 | 园豆:87
提问于:2009-11-25 14:37
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册