摘要: 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 阅读全文
posted @ 2014-03-13 17:30 旅途。 阅读(363) 评论(0) 推荐(0) 编辑