Hyperlink is undefined inside an UpdatePanel
<p>I have a HyperLink placing inside an UpdatePanel:</p>

<pre><code>&lt;asp:UpdatePanel ID="UpdatePanel3" UpdateMode="Conditional" ChildrenAsTriggers="False" runat="server"&gt;
    &lt;ContentTemplate&gt; 
        &lt;asp:HyperLink runat="server" ID="LinkMylink" Text="B3D Download" Visible="False"&gt;&lt;/asp:HyperLink&gt;
    &lt;/ContentTemplate&gt; 
&lt;/asp:UpdatePanel&gt;
</code></pre>

<p>But then I got this problem:</p>

<pre><code>  &lt;script type="text/javascript"&gt; //&lt;![CDATA[ document.getElementById(ctl00_ContentPlaceHolder1_Link3Dlink)(function() {var fn = function() {$get("ctl00_ToolkitScriptManager1_HiddenField").value = '';Sys.Application.remove_init(fn);};Sys.Application.add_init(fn);})();Sys.Application.initialize(); Uncaught ReferenceError: ctl00_ContentPlaceHolder1_LinkMylink is not defined //]]&gt; &lt;/script&gt;
</code></pre>

<p>It seems strange, is not it? What is the cause of this and how can I fix it? The javascript method is automatically generated. </p>
