Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.
Protected Sub ExportToExcel2(ByVal objDT As DataTable, ByVal authAbbreviation As String) Response.Clear() Response.Buffer = True Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("content-disposition", "attachment;filename=MyFiles.xls") Response.Charset = "" EnableViewState = False Dim sw = New System.IO.StringWriter() Dim htw = New System.Web.UI.HtmlTextWriter(sw) gvResults.DataSource = objDT gvResults.DataBind() gvResults.RenderControl(htw) Response.Write(sw.ToString()) Response.End() End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.