导出Excel Gridview

/// /// 定义导出Excel的函数 /// /// /// private void Export(string FileType, string FileName) { GridView1.AllowPaging = false; //导出分页的全部数据 GridView1.AllowSorting = false; bind(); Response.Charset = "GB2312"; Response.ContentEncoding = System.Text.Encoding.UTF8; Response.AppendHeader("Content

posted on 2013-12-14 10:46  aXinNo1  阅读(187)  评论(0编辑  收藏  举报