cymxiao

博客园 首页 新随笔 联系 订阅 管理

2013年11月27日 #

摘要: GridView导出函数内容如下 string attachment = "attachment; filename=Contacts.xls"; Response.ClearContent(); Response.AddHeader("content-disposition", attachment); Response.ContentType = "application/ms-excel"; StringWriter sw = new StringWriter(); HtmlTextWriter htw = new HtmlTe 阅读全文
posted @ 2013-11-27 21:49 萧雨 阅读(238) 评论(0) 推荐(0) 编辑