项目中导出excel的代码如下
this.Response.Clear();
this.Response.ContentType = "application/vnd.ms-excel";
this.Response.Clear();
this.Response.ContentType = "application/vnd.ms-excel";