LinkButton is not calling JavaScript function in OnClick?
<p>I'm trying to call a jquery function from a asp link button.  Here is my link button html:</p>

<pre><code>        &lt;div style="padding-left:75px"&gt;
            &lt;asp:LinkButton ID="lbAddCC" runat="server" ClientIDMode="Static" OnClick="ShowCCControls()" Text="Add CC"&gt;&lt;/asp:LinkButton&gt;
        &lt;/div&gt;
</code></pre>

<p>Here is my jquery function: </p>

<pre><code>        function ShowCCControls() {

          $('#lblCC').show();
          $('#txtCC').show();
      } //end ShowCCControls()
</code></pre>

<p>When I try to build, I get the error:  </p>

<p>ASP.internal_email_aspx does not contain a definition for 'ShowCCControls' and no extension method 'ShowCCControls' accepting a first argument of type 'ASP.internal_email_aspx' could be found (are you missing a using directive or an assembly reference?)</p>

<p>I have this working on another page using a check box:</p>

<pre><code>                   &lt;asp:CheckBox ID="chkNew" TabIndex="8" runat="server" Text="New Tank" OnClick="SetNewTankControls()"
                   ClientIDMode="Static" /&gt;
</code></pre>

<p>Anybody see an issue?  Thanks</p>

<p>Here is all of the javascript:</p>

<pre><code>    &lt;script  type="text/javascript" language="javascript"&gt;

    //document.ready is used for jquery, waits until the doc is ready to be manipulated
    $(document).ready(function () {

        HideControls();

    });  //end document.ready



    function HideControls() {

        $('#lblCC').hide();
        $('#txtCC').hide();
       $('#lblBCC').hide();
        $('#txtBCC').hide();
    }  //end HideControls()

    function ShowBCCControls() {
        $('#lblBCC').show();
        $('#txtBCC').show();
    } //end ShowBCCControls

    function ShowCCControls() {

        $('#lblCC').show();
        $('#txtCC').show();
    }  //end ShowCCControls()
</code></pre>

<p></p>
