title: ASP .Net C# - Get File location after downloaded
body: <p>I'm currently developing a simple program (using ASP.Net C#) to populate data from GridView into Excel file. the Excel file will be need to downloaded into client computer.</p>
  
  <p>For some reasons, I need to manipulate the Excel file quickly after it downloaded into client local computer.</p>
  
  <p>The problem is I can't get the file location where the file was downloaded.
  How can I get the file location after it downloaded into client computer ?</p>
  
  <p>This is the screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/N1lZh.png" alt="enter image description here"></p>
  
  <p>Download Code:</p>
  
  <pre><code>private void Create_ExcelContent2()
  {
      Response.Clear();
      Response.Buffer = true;
      Response.AddHeader("content-disposition", "attachment;filename=" + ddlBatchID.Text + ".xls");
      Response.Charset = "";
      Response.ContentType = "application/vnd.ms-excel";
      using (StringWriter sw = new StringWriter())
      {
          HtmlTextWriter hw = new HtmlTextWriter(sw); ...
          gvBatchSummary.RenderControl(hw);
          string style = @"&lt;style&gt; .textmode { } &lt;/style&gt;";
          Response.Write(style);
          Response.Output.Write(sw.ToString());
          Response.Flush();
          Response.End();
      }
  }
  </code></pre>