Try our conversational search powered by Generative AI!
AI OnAI Off
Maybe this thread in stackoverflow could have your answer: http://stackoverflow.com/questions/3206682/stream-file-using-asp-net-mvc-filecontentresult-in-a-browser-with-a-name
Hi,
Would anyone have a controller example that prompts for a file download from a string? I'm trying function that returns a System.Web.Mvc.FileContentResult, but the contents get displayed in the gadget instead of getting downloaded.
Here is the return line of the function:
Thanks,
Brad