我无法在 Atlas 更新面板中生成 excel。(由于无法在更新面板中结束/写入 [XML] 响应)我不想使用 asp:updatepanel .. 还有其他方法吗?
任何正确的答案将不胜感激......
提前致谢
我无法在 Atlas 更新面板中生成 excel。(由于无法在更新面板中结束/写入 [XML] 响应)我不想使用 asp:updatepanel .. 还有其他方法吗?
任何正确的答案将不胜感激......
提前致谢
我想你不需要,因为你可以发送一个普通的请求来生成excel文件,而不离开当前页面,产生与使用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