Hello everyone, I have a web form with a button that triggers a data backup process when clicked. Here is the JavaScript code I am using:
<script language="javascript" type="text/javascript">
function showPleaseWait() {
document.getElementById('PleaseWait').style.display = 'block';
}
</script>
<asp:Button ID="btnTakebackup" runat="server" Text="Take Backup" Enabled="true"
onMouseDown="showPleaseWait()" CausesValidation="false" />
<div id="PleaseWait" style="display: none;">"Please Wait Backup in Progress.."</div>
Currently, I am utilizing a button for conducting backups.
My goal now is to display a message in the btnTakebackup_Click()
event indicating whether the backup was successful or not. I tried using
Response.Write("<script>alert('abcd');</script>");
in the btnTakebackup_Click()
event. However, the issue I am facing is that I want to show the page as well, but instead, only a white background is displayed.
Thank you in advance...