asp.net导出EXCEL的功能代码
代码如下://由gridviw导出为Excel public static void ToExcel(System.Web.UI.Control ctl) { HttpContext.Current.Response.AppendHeader(“Content-Disposition”, “attachment;filename=Excel.xls”); HttpContext.Current.Response.Charset = “UTF-8”; HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.Defau
用户评论