title: How to Save Excel File in a specific Folder
body: <p>I am exporting excel file from database using following method.But i have one problem when i am exporting excel file than it is automatically downloading to download folder and i don't want this to be happen,I want my excel file to be downloaded in my project folder</p>
  
  <pre><code>var formsection = from fs in db.FormSections
                    join form in Form on fs.FormId equals form.FormId
                    select fs;
  XLWorkbook wb = new XLWorkbook();              
  string sheetName = "ARTICLE"; //Give name for export file.               
  
  var Fs = wb.Worksheets.Add("FORMSECTION");
  Fs.Cell(2, 1).InsertTable(formsection.ToList());// assign list here.
  HttpContext.Response.Clear();
  HttpContext.Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
  HttpContext.Response.AddHeader("content-disposition", String.Format(@"attachment;filename={0}.xlsx", sheetName.Replace(" ", "_")));
  var filePath = Path.Combine(Server.MapPath("~/Content"));
  using (MemoryStream memoryStream = new MemoryStream())
  {                  
      wb.SaveAs(memoryStream);                     
      memoryStream.WriteTo(HttpContext.Response.OutputStream);
      memoryStream.Close();
  }               
  HttpContext.Response.End();
  </code></pre>