Failed to create Excel in Atlas update panel

I cannot create excel in Atlas update panel. (Since the answer cannot be completed / written [XML] in the update panel) I don't want to use asp: updatepanel . Is there another way?

Any correct answer will be much appreciated ...

Thank you in advance

+1


source to share


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







All Articles