下载文件
[HttpGet] public void DownUpdateOrderStateTmp() { string filePath = AppDomain.CurrentDomain.SetupInformation.ApplicationBase + "/Data/UpdateOrderStateTmp.xlsx"; Response.ContentType = "application/ms-excel"; Response.AddHeader("Content-Disposition", $"attachment;filename={System.Web.HttpUtility.UrlEncode("订票业务状态填写模板")}.xlsx");//防止IE下载文件名乱码 Response.ContentEncoding = Encoding.UTF8; Response.TransmitFile(filePath); }

浙公网安备 33010602011771号