Download an Excel file

后端 未结 3 1301
猫巷女王i
猫巷女王i 2021-01-29 01:30

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         


        
3条回答
  •  逝去的感伤
    2021-01-29 01:36

    Try adding such HTTP headers

    Content-Type: application/force-download
    Content-Type: application/vnd.ms-excel
    Content-Type: application/download
    

提交回复
热议问题