image button doesnt fire jQuery / postback after first postback?
<p>I've got an asp.net web app that has an update panel.
Inside of the update panel I have a grid view control.
In the grid view control I have two buttons notice the visibility:</p>

<pre><code>&lt;ItemTemplate&gt;
  &lt;asp:ImageButton class="DeleteLineItem" style="display:none;" ID="ibDelete2" runat="server" CommandName="DeleteRow" ImageUrl="images/d.gif" ToolTip="Delete Line Item?" /&gt;
  &lt;asp:ImageButton class="TempDeleteLineItem" ID="ibTempDelete" OnClientClick="return false;" runat="server" ToolTip="Delete Line Item?" ImageUrl="images/d.gif" /&gt;
&lt;/ItemTemplate&gt;
</code></pre>

<p>Notice the first ones display is set to <code>none</code> the reason I do this is you will notice the second one has an onclientclick="return false;".  When I click the button with id ibTempDelete it calls some jquery to remove a row from my gridview and then it triggers the click event of the <code>ibDelete2</code> button (the one that's hidden).  The jquery for that is here:</p>

<pre><code>$(".TempDeleteLineItem").click(function() { 
    $(this).closest("tr").fadeOut(3000, function() { 
        alert('hi');
        __doPostBack($(this).closest ('tr').find ('.DeleteLineItem').attr('name'), "");
        $(this).remove();
    }); 
});
</code></pre>

<p>I find the row and fade it out, do a post back by calling the DeleteLineItem event and removing the row.  Now when I first load my web page (assume there are 3 records in the grid view).  When my page loads I can easily click the <code>ibTempDelete</code> button and it calls the jquery, fades out the row, alerts hi, does the post back and removes the row...it works basically!  Great so what is my problem?</p>

<p>My problem is immediately after this post back (now I have 2 rows in my gridview) if I try to click the <code>ibTempDelete</code> button nothing happens, it appears it is no longer clickable?  The alert doesnt even display.</p>

<p>So my question is my lack of understanding on how asp.net and postbacks work.  As soon as I hit the first postback why is the button no longer clickable?</p>
