摘要:
把GridView控件的内容输出到Excel的方式网上有很多文章,其代码如下所示: ExcelExport.aspx.cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; usin... 阅读全文
摘要:
将DataGrid生成excel: Response.Clear(); Response.Buffer= true; Response.Charset="GB2312"; Response.AppendHeader("Content-Disposition","attachment;filename=FileName.xls"); Response.Content... 阅读全文