I was wondering if it were possible to write a file FileResult that worked something like this.
public ActionResult Generate(int id)
{
//Fill Model
string ViewName = "template1";
return new FileResult(ViewName, @"c:\save"+ id +".txt");
}
where it would take the model, and combine it with the view to give you the output that would normally be displayed to the screen but instead just save it with the filename specified.
Note: This file will be saved on the webserver
Cheers.