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
  • 699
  • 2
  • 11
  • 38

1 Answers1

2

The header you're after is Content-Type:

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