2
Answers

How to Redirect action after export excel from ExcelPackage

Sunil Sudhansu

Sunil Sudhansu

5y
1.3k
1
Sheets.Cells["A:AZ"].AutoFitColumns();
Response.Clear();
Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
Response.AddHeader("content-disposition", "attachment: filename=" + "ErrorReport.xlsx");
Response.BinaryWrite(Eps.GetAsByteArray());
Response.End();
return this.RedirectToAction("index",false);
 
 
but its not redirect 
How to Redirect Index Action in mvc 
Answers (2)