Answers for "how to write excel content type while returning from mvc view"

C#
0

how to write excel content type while returning from mvc view

Response.ContentType = "application/vnd.ms-excel";

Response.AppendHeader("content-disposition", "attachment; filename=myfile.xls");
Posted by: Guest on August-18-2021
0

how to write excel content type while returning from mvc view

Response.ContentType = "application/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";

Response.AppendHeader("content-disposition", "attachment; filename=myfile.xlsx");
Posted by: Guest on August-18-2021

Code answers related to "how to write excel content type while returning from mvc view"

C# Answers by Framework

Browse Popular Code Answers by Language