title: Button Inside Gridview Inside Update Panel Not Working
body: <p>I'm just starting to use Update Panels in my solutions, so I'm slowly getting familiar with them.  I have a GridView that has a delete button associated with each row displayed. When I click on the delete button, it's OnClick event should displays a panel which acts as semi-modal confirmation box (done as a lightbox) to delete the record associated with the relevant row.  However, when I click the button, the panel doesn't show because all of it is in a Update Panel. Works fine without the update panel</p>
  
  <p>Any ideas?</p>
  
  <p>Here's a stripped down version of my code:</p>
  
  <pre><code>&lt;script runat="server"&gt;
  Protected Sub LinkButtonDelete_Click(ByVal Sender As Object, ByVal e As EventArgs)
      PanelConfirmMessage.Visible = True
      PanelConfirmLightBox.Visible = True
  End Sub
  '.... note there is other code that handles the delete ...
  &lt;/script&gt;
  
  &lt;html&gt;
  &lt;head"&gt;&lt;/head&gt;
  &lt;body&gt;
  &lt;form id="form1" runat="server"&gt;
      &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
          &lt;ContentTemplate&gt;
              &lt;asp:GridView ID="GridView1" runat="server" DataSourceID="DataSourceGridView1"&gt;
                  &lt;Columns&gt;
                      &lt;asp:templatefield HeaderText="Name"&gt;
                          &lt;ItemTemplate&gt;&lt;asp:TextBox ID="TextBox1" runat="server" Text='&lt;%# Bind("MyFieldName") %&gt;' /&gt;&lt;/ItemTemplate&gt;
                      &lt;/asp:templatefield&gt;
                      &lt;asp:TemplateField HeaderText="Delete"&gt;
                          &lt;ItemTemplate&gt;&lt;asp:LinkButton ID="LinkButtonDelete" runat="server" OnClick="LinkButtonDelete_Click"&gt;&lt;/asp:LinkButton&gt;&lt;/ItemTemplate&gt;
                      &lt;/asp:TemplateField&gt;
                  &lt;/Columns&gt;
              &lt;/asp:GridView&gt;
              &lt;asp:SqlDataSource ID="DataSourceGridView1" runat="server" ConnectionString="&lt;%$ ConnectionStrings:MyString %&gt;" SelectCommand="MySelectCommand" SelectCommandType="StoredProcedure"&gt;&lt;/asp:SqlDataSource&gt;
          &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
      &lt;asp:Panel runat="server" ID="PanelConfirmMessage" Visible="false"&gt;
          &lt;p&gt;Are you sure you want to continue?&lt;/p&gt;
          &lt;asp:Button runat="server" ID="ButtonYes" Text="Yes" OnClick="ButtonYes_Click" /&gt;
          &lt;asp:Button runat="server" ID="ButtonNo" Text="No" OnClick="ButtonNo_Click" /&gt;
      &lt;/asp:Panel&gt;
      &lt;asp:Panel runat="server" id="PanelConfirmLightBox" Visible="false"&gt;&lt;/asp:Panel&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>