摘要: 将页面中的数据绑定控件(如GridView、ListView等)中的数据导出到Excel中是个很常用的功能,Google相关资料后总结如下:一、自定义一个方法:ToExcel(Control ctl,stringFileName) 这个方法就是将数据绑定控件中的数据导出到Excel。private void ToExcel(Control ctl, string FileName) { HttpContext.Current.Response.Charset = "UTF-8"; HttpContext.Current.Response.ContentEnco... 阅读全文
posted @ 2012-04-19 10:15 ibg 阅读(402) 评论(3) 推荐(0) 编辑