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?

Spanky
  • 689
  • 1
  • 11
  • 34

1 Answers1

2

The header you're after is Content-Type:

  Response.AddHeader("Content-Type", "text/csv");
Adrian Wragg
  • 7,191
  • 3
  • 27
  • 50