I usually use
ScriptManager.RegisterStartupScript(this, this.GetType(), "pop", "<script>alert('Claim Saved Successfully with Claim No: " + ClaimNo + "');var currentPageUrl =document.location.toString().toLowerCase();window.location.assign(currentPageUrl);</script>", false);
in code behind to pop up a message to the user that the entry has been saved successfully. But my problem with this is that it does not show in a scenario when along with saving the entry I am also downloading a file.
I save an entry in the database and then generate a pdf file from the saved data and download it. All this on a single button click. I want to show a pop up message to the user after the entry has been saved in the database and then ask him if he wants to proceed and download the file? Is it possible? If yes how?