title: C# Download Files saved on my server Options
body: <p>I Have this code:</p>
  
  <pre><code>protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
      {
          if (e.CommandName == "DownLoad")
          {
  
              Response.Clear();
              Response.ContentType = "application/octet-stream";
              Response.AppendHeader("content-disposition", "filename =" + 
             e.CommandArgument);
  
  Response.TransmitFile(Server.MapPath("~/Uploads/")+e.CommandArgument);
              Response.End();
          }
      }
  </code></pre>
  
  <p>The code works but it opens .txt document and .pdf documents and displays them in the web browser.  If I download a .csv or.doc file I am prompted to save the document or open it.  I would like to have the save or open option for all files that are downloaded.</p>