title: Excel file download in C# not working in Google Chrome
body: <p>This code is working when I am going to download a file using IE but when I tried in google chrome, it is not working. Why?</p>
  
  <pre><code>    [HttpPost]
      public ActionResult Excel_Reports() {          
          Response.AddHeader("Content-Type", "application/vnd.ms-excel");
          //events query
          var events = db.Events_Info_tbl.Where(x =&gt; x.is_active == true).FirstOrDefault();
          ViewBag.events_name = events.events_name;
  
          var details = from cat in db.Events_Category_tbl
                        join can in db.Candidates_Info_tbl on cat.events_category_id equals can.events_category_id
                        where cat.events_info_id == events.events_info_id
                        select new Candidates
                        {
                            events_category_name = cat.events_category_name,
                            candidates_fullname = can.candidates_fullname,
                            candidates_info_id = can.candidates_info_id,
                            events_category_id = cat.events_category_id,
                            no_of_votes = can.no_of_votes.Value
                        };
  
          return View(details);
  
      }
  </code></pre>