SoFunction
Updated on 2025-03-08

Exporting data from Grid or DataTable to Excel is so simple


();
("content-disposition", "attachment; filename=");
= "application/excel";
(GetGridTableHtml(Grid1));
();2. Directly output Html code
(@"
<table border="1">
<tr>
<td>Excel</td>
<td>By Html</td>
</tr>
</table>")