Am getting an error when I export dynamically created html table to excel. the error says
Missing File: ~\Temporary Internet Files\Content.IE5\style.css.
when I say ok then the excel opens with the data displayed on browser. Don't know where am going wrong. Below is the code to excel export.
Response.ContentType = "application/x-msexcel";
Response.Clear();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.AddHeader("Content-Disposition", "attachment; filename=ExcelFilenew.xls");
StringWriter tw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(tw);
HtmlTbl.RenderControl(hw);
Response.Write(tw.ToString());
Response.End();