Returning Multiple Files from MVC Action

levitra

New Member
So I've got an MVC 3 application that has a couple places where a text file gets generated and returned in an action using:\[code\]return File(System.Text.Encoding.UTF8.GetBytes(someString), "text/plain", "Filename.extension");\[/code\]and this works fabulously. Now i've got a situation where I'm trying to return a pair of files in a similar fashion. On the view, i have an action link like "Click here to get those 2 files" and i'd like both files to be downloaded much like the single file is downloaded in the above code snippet.How can I achieve this? Been searching around quite a bit and haven't even seen this question posed anywhere...
 
Back
Top