07 2013 档案
gridview导excel及解决导出中文乱码的方法
摘要:要全部展示数据,所以导出时要先将翻页取消,重新绑定数据:gridview的allowpaging属性设置为false,然后databind()一下添加方法: public override void VerifyRenderingInServerForm(Control control){} private void ToExcel(Control ctl, string FileName) { HttpContext.Current.Response.Charset = "UTF-8"; HttpContext.Current.Response.Cont...
阅读全文
浙公网安备 33010602011771号