Failed to create Excel in Atlas update panel
1 answer
I assume you don't need to, as you can send a generic request to generate an excel file without leaving the current page, causing the same effect as using AJAX.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Response.clear()
Response.ContentType = "application/ms-excel;"
Response.AppendHeader("content-disposition", "attachment; filename=""excel-file.xml""")
'write all the file to the response object
Response.Flush()
Response.End()
End Sub
0
source to share