摘要:
利用Response.ContentType属性,设置为application/vnd.ms-excel,将文本数据以microsoft excel的格式输出(Response)到客户端。如,导出DataGrid: 1 //要导出的DataGrid控件 2 3 protected void Button2_Click(object sender, EventArgs e) 4 5 { 6 7 //要导出的控件 8 9 System.Web.UI.Control ctl = this.Label1; 10 11 12 13 ... 阅读全文
posted @ 2013-06-07 17:43
gate_s
阅读(268)
评论(0)
推荐(0)

浙公网安备 33010602011771号