title: C# webClient->DownloadFile download don't start
body: <p>I'm an absolutely beginner in C#-Programming and have one stupid Problem. I only like to download files, which are in the temporatry directory with WebClient.DownloadFile.
  The code is (Action starts with a button-click to the one of two buttons on the page):</p>
  
  <pre><code>[HttpPost]
  [MultiButton(MatchFormKey = "action", MatchFormValue = "ABC")]
  public ActionResult ABC(TestFormModel model)
  {
    string fileName = model.resultLink;
    try
       {
         string tempPath = System.IO.Path.GetTempPath();
         System.IO.Directory.SetCurrentDirectory(tempPath);
         fileName = System.IO.Path.Combine(tempPath, fileName);
  
         Uri uri = new Uri(fileName);
  
         WebClient webClient = new WebClient();
         webClient.DownloadFile(uri, "FFF");                    
       }
    catch (Exception ex)
       { ... }                  
    return View(); 
  }
  </code></pre>
  
  <p>Now I expected (reading "Downloads the resource with the specified URI to a local file." in the documentation) that the download dialog from browser will propmt. But NOTHING happens. No exception, no download dialog. What is wrong with my code?</p>
  
  <p>Thank you very much!</p>