Why does the ClientID not show up? How to fix
<p>I have a jQuery function in ASP that I am trying to get the client ID of. When It renders the HTML I get this as a result.</p>

<p>[HTML RENDERED]</p>

<pre><code>$("")//ctl00_Content_gvProgramList
                    .tablesorter({ widthFixed: true, widgets: ['zebra'],
                        widgetOptions: {
                            zebra: ["even", "odd"]
                        }
                    })
                    .tablesorterFilter({ filterContainer: $("#filter-box"),
                        filterClearContainer: $("#filter-clear-button"),
                        filterColumns: [0, 1, 2, 3],
                        filterCaseSensitive: false
                    })
                    .tablesorterPager({ container: $("#pager") });
</code></pre>

<p>[CODE BEHIND]</p>

<pre><code>        $("&lt;%# gvProgramList.ClientID %&gt;")//ctl00_Content_gvProgramList
                .tablesorter({ widthFixed: true, widgets: ['zebra'],
                    widgetOptions: {
                        zebra: ["even", "odd"]
                    }
                })
                .tablesorterFilter({ filterContainer: $("#filter-box"),
                    filterClearContainer: $("#filter-clear-button"),
                    filterColumns: [0, 1, 2, 3],
                    filterCaseSensitive: false
                })
                .tablesorterPager({ container: $("#pager") });
</code></pre>

<p>If i use <code>ct100_Content_gvProgramList</code> all the javascript works like it should, so please don't post any answers relating to that. I want an answer on how to get the <code>ClientID</code> to show up correctly. </p>

<hr>

<h2>update</h2>

<p>I would like to use  <code>$('#&lt;%= gvProgramList.ClientID %&gt;')</code>, but I get an error.</p>

<pre><code>The Controls collection cannot be modified because the control contains code blocks (i.e. &lt;% ... %&gt;). 

Line 16:         Head.Controls.Add(Header())
Line 17:         Head.Controls.Add(Menu())
Line 18:         Foot.Controls.Add(Footer())
</code></pre>
