Response.Clear() Response.AddHeader("content-disposition", "attachment;filename=" + FileName + typefile) Response.Charset = "" Response.Cache.SetCacheability(HttpCacheability.Public) Response.ContentType = "application/vnd" + typefile Dim stringWrite As New System.IO.StringWriter() Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite) gvExport.RenderControl(htmlWrite) Response.Write(stringWrite.ToString()) Response.End()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)