[HttpGet] public FileResult downloadFile() { byte[] fileBytes = System.IO.File.ReadAllBytes("J:\asp.net\ViewInformation\ViewInformation\Content\book.xlsx); return File(fileBytes, ,application/vnd.ms-excel, 'book.xlsx'); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)