is it possible to both return a file for download and update a view from a controller method call?
or a workaround is needed, maybe using javascript (calling a refresh of the page after loading)?
the file download is created on the fly along the parameters set in a ViewModel
(search parameters from various controls on the page).
You can return the address of file using ViewModel or ViewData from your action, and use
window.location.hrefas demonstrated in the following code at the end of your view.Controller
Markup