Ask a Question. How to refresh or reload page after download any file. Please Sign up or sign in to vote. See more: C. Hii All, m using below code and it is working fine but I have to reload page after download the file,I tried lots of method but It didn't work C.
Copy Code. Posted Apr am Tanmay Tiwari. Add a Solution. Accept Solution Reject Solution. Add your solution here. OK Paste as. Sign in to vote. User posted Hi, I have a button control in a page and when it is clicked, it opens a file download dialog box to open or save a file. Here's the code that executes when the button is pressed: DownloadAssistant.
Collections; using System. Data; using System. SqlClient; using System. Configuration; using System. Web; using System. Security; using System. UI; using System. WebControls; using System. Step 1: Add hidden button to.
ClientScript; cs. RegisterStartupScript this. TryParse Request. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE.
Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer.
Linked 1. Related End ; As you are using Response. End, this will render the page again. So, the changes done before download the file wont reflect in the browser. Lets take the below example.. Lets consider a scenario, I have a list files in database and allow the users to download the files.
So, in web page I will a grid wtih filename and download button in each row.
0コメント