Post Back does not work after writing files to response in ASP.NET

前端 未结 6 921
刺人心
刺人心 2020-12-15 15:00

What I have?

I have an ASP.NET page which allows the user to download file a on a button click. User can select the file he wants from

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 15:45

    Remove Response.End() and let the response end naturally within the ASP.NET ecosystem.

    If that does not work, I would recommend putting the button in a separate

    and post the required data to a separate HTTP handler. Setup the HTTP handler to export the XML instead of a web page.

提交回复
热议问题