Tuesday, 28 November 2017

Show update progress model inside trigger in asp.net

//////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

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...