復制代碼 代碼如下:
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>")
新聞熱點
疑難解答
圖片精選