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


Rupesh KahaneRank #136 · 16.4K reputationPosted Jan 17, 2020, 10:13 AM EST
Jignesh KumarRank #91 · 22.9K reputationPosted Jan 18, 2020, 8:26 AM EST