I have the Index page where there is an Html.ActionLink. This link is calling a function in the controller and creating a csv file into the local user drive. at the end of the function, i am trying to refresh the page, after the file was downloaded. I tried "return View()" And redirect, both doesn't work since i'm already on the index page and i want to stay there. Any ideas? Html:
<div class="col-6 text-right">
<p>@Html.ActionLink("Export Unshipped To CSV", "ExportToCSV")</p>
</div>
Thank you very much! :)
You can use return RedirectToAction("Index");
for reloading Index page.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.