StanK
StanK

Reputation: 4770

How to return a FileResult AND RedirectToAction in ASP.NET MVC

I have an Action that returns a FileResult via View(...). This works well.

Ideally I would like to be able to somehow return a file and then redirect to another action (or somehow do both simultaneously).

Is this possible?

Upvotes: 0

Views: 1381

Answers (1)

Jahan Zinedine
Jahan Zinedine

Reputation: 14874

It could be done by a javascript code in client side which run after download started, you can see the pattern in many website, most notably Microsoft download center.

Upvotes: 2

Related Questions