tags:

views:

60

answers:

2

I know this question has been asked and answered in several ways, but none of them get to the crux of the matter that I need to understand. In WebForms, we 'subvert' the rendering process and write straight to the Response's output stream. How does one achieve that using a Controller Action, to write CSV to a file for Excel?

+1  A: 

Same way you'd write any other file -- use FileResult and it's descendants.

Wyatt Barnett
Thank you, now I know how to write any other file as well.
ProfK
A: 

I've been using this: http://filehelpers.com/ in an asp.net mvc application, look at the getting started guide, you should get it from there

Omu