Top "Fileresult" questions

Stream file using ASP.NET MVC FileContentResult in a browser with a name?

Is there a way to stream a file using ASP.NET MVC FileContentResult within the browser with a specific name? …

asp.net-mvc fileresult filecontentresult
Redirecting to MVC ActionResult from FileResult

This might be a simple one but here goes: I'm implementing an excel downloadable report in my MVC3 application. I've …

c# asp.net-mvc fileresult
How to return error message from FileResult method in asp.net MVC 4 application?

I have a fileresult method in asp.net mvc4 that returns a report in an excel file. Now how can …

asp.net-mvc fileresult
Download file prompt when using WebAPI HttpResponseMessage

I have a method in my API that returns a HttpResponseMessage: [HttpGet, HoodPeekAuthFilter] public HttpResponseMessage GlobalOverview() { try { StatsRepo _statsRepo = new …

c# asp.net-mvc asp.net-web-api httpresponse fileresult
Downloading/Opening Excel File with FileResult MVC4 Not Working

I am trying to open an excel file on local disk in Excel using the FileResult object. When i click …

asp.net-mvc-4 file-io fileresult
What is the best way to return File or ErrorMessage from Asp.net-mvc controller action?

I have the following javascript code and controller action in my asp.net-mvc project: Javascript: $("#exportPPT").live('click', function (e) { …

jquery asp.net-mvc powerpoint fileresult
ASP.NET MVC FilePathResult: How to return an html file not found?

The following code is hopefully a correct way to return an image that exists on disk using ASP.NET MVC 3: …

c# asp.net-mvc-3 fileresult