0

Hi I have function at controller which return a .rar file .

public FilePathResult ExportAllToExcel(SearchPage searchpage) {
    return File(strpath + ".rar", " ", filename);
}

and I am calling this function using jQuery but not able to handle return value

$.post("@Url.Action("ExportAllToExcel")",values,function(data){
    ??...
});

how to process data to show downloaded file.

Sam Greenhalgh
  • 5,952
  • 21
  • 37

0 Answers0