Click here to Skip to main content
15,887,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a timer
XML
<asp:Timer ID="Timer1" runat="server" Interval="15000"
           ></asp:Timer>


I get this error while calling _startTimer or _stopTimer in javascript.

Already tried

$find("Timer1")._startTimer();
$get("<%= Timer1.ClientID %>")._startTimer();
$('#<%= Timer1.ClientID %>').get(0)._startTimer();


Any suggestions??
Posted
Comments
ZurdoDev 4-Nov-15 10:15am    
Perhaps you don't have a script manager on the page so the proper JS files are not being loaded.
ZurdoDev 4-Nov-15 10:15am    
Also, the error is that the object does not support _startTimer. This means all 3 ways of trying to get the timer object are working, but the supporting JS files are not loaded.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900