复制代码 代码如下:
Response.ClearContent();
Response.AddHeader("content-disposition", "attachment; filename=MyExcelFile.xls");
Response.ContentType = "application/excel";
Response.Write(GetGridTableHtml(Grid1));
Response.End();2. 直接输出Html代码
Response.Write(@"
<table>
<tr>
<td>Excel</td>
<td>By Html</td>
</tr>
</table>")
新闻热点
疑难解答
图片精选