Quote:Return a FileResult or FileStreamResult from your action, depending on whether the file exists or you create it on the fly. C# public ActionResult GetPdf(string filename) { return File(filename, "application/pdf", Server.UrlEncode(filename)); }
public ActionResult GetPdf(string filename) { return File(filename, "application/pdf", Server.UrlEncode(filename)); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)