sb.Append("<table width='100%' border='1' class='data' cellspacing='0' cellpadding='0'>") sb.Append("<tr>")
sb.Append("</tr>") sb.Append("</table>") dvReport.InnerHtml = sb.ToString()
Dim stringWrite As System.IO.StringWriter = New System.IO.StringWriter() Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite) Response.Clear() Response.AddHeader("content-disposition", "attachment;filename=ReportFullDump.csv") Response.Charset = "" Response.ContentType = "application/CSV" dvReport.RenderControl(htmlWrite) Response.Write(stringWrite.ToString())
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)