Do you really want this to be a warning? (You should know that they block the entire browser, and not just the tab on which your page is located), do your users really need to confirm the success of the backup by clicking ok or just informing about it? ...
I suggest you have a div on the page that says "Backup successful". The visibility of which can be set using the logical property BackUpSuccess , which you can set to true in the code that you mention.
<div id="backUpSuccess" <%=BackUpSuccess ? "" : "style='display:none;'"%>> Backup was successfull </div>
... you can style the div as you like in your .css file to get attention.
If you really need an alert, you can run some JavaScript on the page load to check the contents of the hidden input that you installed on the server side in the same way ... but running javascript on the page load is complicated ... if only yours using jQuery, and then You will know it very easily.
source share