Refresh page after response.end() download file c#






















BinaryWrite file ; HttpContext. End ; HttpContext. AddHeader "Refresh", "BidMgr. FindControl "Button6" ; DownloadAssistant. Text ; Any suggestion or help would be greatly appreciated as I have been working for several days without any luck. Thursday, November 19, PM. User posted It is impossible to refresh the page if the file has download. Wednesday, November 25, AM. User posted try: in your download button event, after to excute download, redirect your page to current url Response.

Redirect Request. ToStrong ;. User posted Steve, I tried with your suggestion but it did not work. Thanks anyway! Friday, November 20, AM. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid. Related Questions. How to reload a page after file download. How to refresh or reload page in backbone.

Page refresh or page reload.. How do I stop page reloading after submitting file to server? Sending data without refresh the page. How to Refresh a Repeater without Page Reload. Layout: fixed fluid. Web04 2.

Strip HTML. Encode HTML. Paste as-is. So, you wont get the download. This leads to a problem, suppose your download finished within 2 seconds.

So, the page will reload after 10 seconds or 1 minute. And also, you cannot vary the setTimeout interval dynamically, due to dynamice operations before download the file So, how can we overcome this? Geneartion Download File Content and accomplish pre-download operations Download button 2. Download the original file from previouly genrated content. Pre-download things will be handled by Download button and download opeartion will be handled by hidden button here is the Sample HTML for this.

I would like to address one common issue here and one way solving the issue



0コメント

  • 1000 / 1000