Hi,
I am having a Timer control like this:
asp:Timer ID="Timer1" runat="server" Enabled="False" Interval="1000" OnTick="Timer1_Tick"> </asp:Timer>In an UppdatePanel with AJAX enabled. So everything works fine to the point where on each refresh of the panel a JS is inserted in the header:
<script type="text/javascript">Sys.Application.add_init(function() { $create(Sys.UI._Timer, {"enabled":true,"interval":1000,"uniqueID":"Timer1"}, null, null, $get("Timer1")); });</script>So you can imagine in 10 min the page is increased by 600 lines.
Any ideas on how to make the timer not register itself every time or at least not stack up ?
Thanks!
platinum8
Junior Poster
Banned
107 posts since Jul 2008
Reputation Points: 1
Solved Threads: 3
Infraction Points: 10