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

Jignesh KumarPosted Jan 18, 2020, 1:26 PM
Rupesh KahanePosted Jan 17, 2020, 3:13 PM