How do I pull the clientID of an asp:button inside an asp:listview for use with jQuery?
<p>I'm attempting to do something which should be relatively simple.  I'm using a ListView to show a number of items, using the ItemTemplate.  Inside the ItemTemplate I have a div surrounding the full item, so that I can highlight on a hover event, (being handled already by jQuery).</p>

<p>What I would like to do is have the click event on the div fire a button to open a details view for that specific item.  The problem I'm having is pulling back the ClientID for that button while using jQuery.  I've tried the:</p>

<pre><code>$('#&lt;%= Button1.ClientID %&gt;')
</code></pre>

<p>route, but that doesn't work, as the Button doesn't exist when the page loads.</p>

<p>The basic code is as follows:</p>

<pre><code>&lt;asp:listview&gt;
 &lt;itemtemplate&gt;
  &lt;td runat="server"&gt;
   &lt;div class="container"&gt;
    &lt;asp:linkbutton id="Button1" runat="server" text="View Details" /&gt;
     fun and exciting stuff here...
   &lt;/div&gt;
  &lt;/td&gt;
 &lt;/itemtemplate&gt;
&lt;/asp:listview&gt;
</code></pre>

<p>Any suggestions or help are much appreciated!</p>
