摘要:
GridView导出Excel的代码如下:if (this.GridView1.Rows.Count != 0) { HttpContext.Current.Response.Clear(); HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xls"); //这里是用日期做名称 HttpContext.C 阅读全文