I have probably worded the question badly, but couldn't figure out how to phrase it.
I have an ASP.NET webpage with a number of update panels and timers to trigger events, but it seems I must be missing something in my implementation, because the behaviour I'm observing can't be right.
I've noticed that every time my Timer fires a tick event I get a new script tag in the <head> section of my page with the following code:
<script type="text/javascript">
Sys.Application.add_init(function() {
$create(Sys.UI._Timer, {"enabled":true,"interval":1000,"uniqueID":"ctl00$ContentPlaceHolder$missionControl$missionDataControl$MissionTimer"}, null, null, $get("ctl00_ContentPlaceHolder_missionControl_missionDataControl_MissionTimer"));
});
</script>
I figure that code should be added to the page on the first load, but it shouldn't keep duplicating, should it? It's probably something really basic, but what am I missing?