JavaScript In UserControl Wont Run
<p>I am trying to run the following script from my usercontrol:</p>

<pre><code>&lt;script type="text/javascript" language="javascript"&gt;
    function RebindUpdatePanelControls(sender, args) {
        $("#divUpload2").hide();
        $("#divUpload3").hide();
        alert("Hi Neck");

        $('#lnkMore').click(function () {
            if ($('#hfClicked').val() == "0") {
                $("#divUpload2").slideToggle();
                $('#hfClicked').val("1");
            }
            else if ($('#hfClicked').val() == "1") {
                $("#divUpload3").slideToggle();
                $('#hfClicked').val("2");
            }

        });

    }

&lt;/script&gt;

&lt;script type="text/javascript"&gt; 
Sys.Application.add_load(RebindUpdatePanelControls); 
&lt;/script&gt;
</code></pre>

<p>I added it to the top of the usercontrol file but it will not run </p>

<p>lnkMore looks like this:</p>

<pre><code>  &lt;input id="lnkMore" type="button" value="Add GCM File"  /&gt;
</code></pre>

<p>Is there something else I am missing to do to get this running?</p>

<p>How do I make the client side button use this code when it isclicked?</p>
