Take the community feedback survey now.
                AI OnAI Off
            
        Take the community feedback survey now.
 
                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