0

I'm trying to figure out how to convert the following table to a CSV (Comma Seperated Value)

<table>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
</table>

I understand that you need to use something like

Response.AddHeader("Content-Disposition", "attachment;filename=myfilename.csv");

But what else do you need to do?

4

1 回答 1

2

您追求的标头是 Content-Type:

  Response.AddHeader("Content-Type", "text/csv");
于 2013-09-12T16:09:09.757 回答