title: ASP.NET MVC 3, pass the file from server to client
body: <p>Actually, this looks like the download feature, allowing a user to determine the local path where the file should be stored.</p>
  
  <p>The whole thing is: the background program will generate a data file in the server, after that, I want to pass the data file from server to client.<br>
  I used <code>FileStreamResult</code> and <code>FileContentResult</code>, but it doesn't work.</p>
  
  <p>A *.csv file was generated, then the file needs to transfer to the client. in controller , the code is very simple , like <code>return new FilePathResult(filePath,"text/csv");</code> and I set the break point , the code execute without any exception , but I didn't see any web diaglog letting the user to select the path to save the csv file.</p>