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

浙公网安备 33010602011771号