Last post Mar 02, 2020 10:47 AM by PatriceSc
Mar 01, 2020 02:23 AM|Rajanish R Karla|LINK
ASP.Net AjaxToolKit Timer control Tick event is not triggered intermittently
We are using asp:Timer while loading Excel Documents, The OnTick event of the Timer control is not getting fired intermittently. This was working fine earlier but causing the issue after upgrading the web server to 2019
Below are our old and new environment details:
Windows Server 2016
Windows Server 2019
.Net framework Version
Below is the code snippet: Here HideExcelProgress_Tick event is not getting triggered intermittently . Also tried changing the Ajax tool kit option
CombineScripts="False” but that did not help.
<asp:Timer runat="server" ID="ExcelUpdateTimer" Interval="1000" OnTick="HideExcelProgress_Tick" Enabled="false" />
<asp:UpdatePanel ID="updatePanelExcel" runat="server" UpdateMode="Always">
<Triggers><asp:AsyncPostBackTrigger ControlID="ExcelUpdateTimer" EventName="Tick" /></Triggers>
<div id="divExcel" runat="server" style="width: 100%; height: 100%; background-color: White; filter: alpha(opacity=50); opacity: 0.5; z-index: 10; position: absolute; left: 0px; top: 0px; display: none;"> </div>
<div id="divSubExcel" runat="server" style="border: 1px solid gray; width: 250px; position: absolute; left: 450px; top: 350px; background: White; z-index: 11; padding: 5px; filter: alpha(opacity=100); opacity: 1; display: none;" aria-labelledby="lblExcelProgress"
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<td align="right" style="vertical-align: middle">
<img src="Images/ProgressBar.gif" alt="" id="Img2" />
<td align="left" style="vertical-align: middle">
<acesec:Label ID="lblExcelProgress" runat="server" Text=""></acesec:Label>
Any help is highly appreciated.
Mar 02, 2020 09:53 AM|Sean Fang|LINK
Hi, Rajanish R Karla,
I have tried your code from my side and it works perfectly (.Net Frame 4.7.2, Windows 10, Chrome).
I found that you set the property "Enabled" of timer to "false" so that you might have had a button/other control to make the timer working in code, which is not posted.
According to the information your gave, it is hard to find the reason of the problem.
You could post this debug information again and it would be helpful to target the problem.
Your problem is possibly related to 'Ajax client-side framework loading'.
files for controls like TreeView, Menu, etc).
Hope this can help you.
Mar 02, 2020 10:47 AM|PatriceSc|LINK