Gridview export to excel not working in google chrome
<pre><code>private void ExportGrid(GridView grdReport)
{
 if (grdReport.Rows.Count &gt; 0)
 {
     grdReport.HeaderStyle.BackColor = Color.Gray;
            grdReport.HeaderStyle.ForeColor = Color.White;

            Response.Clear();
            Response.ClearContent();
            Response.ClearHeaders();
            Response.Buffer = true;

            var stringWrite = new StringWriter();
            var htmlWrite = new HtmlTextWriter(stringWrite);

            Response.AddHeader("content-disposition", "attachment;filename=");
            Response.Charset = string.Empty;
            Response.ContentType = "application/vnd.ms-excel";
            grdReport.RenderControl(htmlWrite);
            Response.Write(style);
            Response.Write(stringWrite.ToString());
            Response.Flush();
            Response.End();
        }
</code></pre>

<p>Above is the code which i'm using to export gridview to excel. it is working fine in IE and firefox but not in Google Chrome. In Chrome an aspx page gets downloaded. Is any a need of change in code? please let me know.</p>
