//////html
<asp:UpdateProgress ID="UpdWt" runat="server" DisplayAfter="1" AssociatedUpdatePanelID="UpdMaster">
<ProgressTemplate>
<div class="overlayWait" align="center">
<div class="textoverlayWait">
<i class="fa fa-clock-o" style="left: 10px; position: absolute; top: 2px;"></i>
<img src="img/wait.gif">
<div style="width: 130px;">
Please Wait <span id="loadspn">.</span>
</div>
</div>
</div>
</ProgressTemplate>
</asp:UpdateProgress>
///////// JS
<script type="text/javascript">
window.onsubmit = function () {
if (Page_IsValid) {
var updateProgress = $find("<%= UpdWt.ClientID %>");
window.setTimeout(function () {
updateProgress.set_visible(true);
}, 100);
}
}
</script>
No comments:
Post a Comment