Delay in query - Locked UpdateProgress - cancel update

0

I have in my ASP.NET application a results page that is the result of a query to MSSQL. To page the results, I use DataPager in the ListView, and to offer a slightly improved experience I use UpdatePanel and UpdateProgres and etc.

Responses are delayed while the pagination happens and causes the progress to appear to be "stuck", consequently the user waits without knowing what is happening.

I would like to offer the user of my application the possibility of canceling the update of the results, or that the application detected the delay of more than 5s for example, and directed the user to another page informing the problem, if it occurs , or another suggestion.

.aspx
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
   <ProgressTemplate>
         <div>
           <ul class="fa-ul">
               <li><i class="fa-li fa fa-spinner fa-spin"></i> Por favor, aguarde...</li>
            </ul>
         </div>
 </ProgressTemplate>            
</asp:UpdateProgress>          
    
asked by anonymous 10.05.2018 / 20:42

0 answers