private void CreateXL() { Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=xxxxxxxt.xls"); Response.Charset = ""; Response.ContentType = "application/vnd.xls"; StringWriter objStringWriter = new StringWriter(); HtmlTextWriter objHtmlTextWriter = new HtmlTextWriter(objStringWriter); Gridview.RenderControl(objHtmlTextWriter); Response.Write(objStringWriter.ToString()); Response.End(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)