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
2010-08-23 19:45:02
Thank you, now I know how to write any other file as well.
ProfK
2010-08-23 19:55:46
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
2010-08-23 20:28:40