I have read some past posts here on how to download a Excel file from a website. So, I have setup the below code:
string path = MapPath(fname); string name = Pa
You need to send this before the file attachment header:
Response.ContentType = "application/vnd.ms-excel"
See: Export data to excel file from Classic ASP failing