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.