c# - disable jquery blockUI in timer1_tick -
i have masterpage with function returns current date , time, problem everytime timer ticks, blockui being called.. there way can disable in particular event timer1_tick? thank in advance.
masterpage:
<asp:scriptmanager runat="server" id="mainscriptmanager" asyncpostbacktimeout="36000"/> <asp:updatepanel runat="server" id="updatepanel"> <contenttemplate> <%=getdatetime()%> <asp:timer id="timer1" runat="server" interval="1"></asp:timer></td> </contenttemplate> </asp:updatepanel>
codebehind:
public static string getdatetime() { string currentdatetime = datetime.now.tostring(); return currentdatetime; } protected void timer1_tick(object sender, eventargs e) { getdatetime(); }
Comments
Post a Comment