Dim attachment As String = "attachment; filename=Employee.xls" Response.ClearContent() Response.AddHeader("content-disposition", attachment) Response.ContentType = "application/ms-excel" Dim stw As New StringWriter() Dim htextw As New HtmlTextWriter(stw) expences.RenderControl(htextw) Response.Write(stw.ToString()) Response.[End]()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)