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