📜  从 mvc 视图返回时如何编写 excel 内容类型 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:25.954000             🧑  作者: Mango

代码示例2
Response.ContentType = "application/vnd.ms-excel";

Response.AppendHeader("content-disposition", "attachment; filename=myfile.xls");