02 2013 档案

摘要:最近因为项目需求,将gridview等控件的数据导出excel。我找了两种解决方案,和大家分享一下。 1.第一种比较简单。 Response.Clear(); Response.Charset = "GB2312"; Response.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312"); Response.ContentType = "application/ms-excel"; string strSaveFileName = ... 阅读全文
posted @ 2013-02-20 11:33 追寻戈多 阅读(336) 评论(0) 推荐(0)