While exploring a web page, I stumbled upon the following code snippet (pay attention to the id of the span element):
<div id="UpdatePanel3">
<span id="Timer3" style="visibility:hidden;display:none;"></span>
<select name="DropDownList1" id="DropDownList1" class="form-control"
size="2" onchange="navFromList(this.value);">
<option value="12720">Blawblawblaw</option>
</select>
</div>
Further down on the same page, within a CDATA section, I found this piece of code (take note of the uniqueID attribute):
Sys.Application.add_init(function() {
$create(Sys.UI._Timer, {"enabled":true,"interval":15000,"uniqueID":"Timer3"}, null, null, $get("Timer3"));
});
I was puzzled by how these elements can share the same Id. It seems to be related to AJAX or partial page refreshes, but I have yet to grasp the concept fully.
If anyone could shed some light on this for me, that would be greatly appreciated!